SNMP integration for Grafana Cloud
The SNMP integration lets you monitor any generic SNMP (Simple Network Management Protocol) device.
Install SNMP integration for Grafana Cloud
- In your Grafana instance, Click Integrations and Connections (lightning bolt icon), then click on install integration on SNMP tile.
- Wait for the integration to be installed and then follow the steps shown to setup Grafana Agent to automatically scrape and send SNMP metrics to your Cloud Instance.
Pre-install configuration for the SNMP integration
The device you are trying to monitor must support reporting device data through SNMP protocol.
The instructions for enabling SNMP vary for each device. The SNMP daemon can also be installed on any linux device. Once SNMP is enabled for the device, install the Grafana agent where it can access the SNMP device on SNMP ports UDP/TCP 161 and 162 using the instructions given below.
Post-install configuration for the SNMP integration
The SNMP integration uses the embedded SNMP exporter inside the Grafana agent.
The configuration below enables the SNMP exporter integration for the Grafana agent.
Replace the <host_address_*>
tags with the addresses of the relevant SNMP devices. Also configure the walk params according to your configuration.
integrations:
snmp:
enabled: true
relabel_configs:
- action: replace
source_labels: [job]
regex: (^.*snmp)\/(.*)
target_label: job_snmp
replacement: $1
- action: replace
source_labels: [job]
regex: (^.*snmp)\/(.*)
target_label: snmp_target
replacement: $2
snmp_targets:
- name: network_switch_1
address: <host_address_1>
module: if_mib
walk_params: public
- name: network_switch_2
address: <host_address_2>
module: if_mib
walk_params: public
walk_params:
public:
version: 2
auth:
community: public
prometheus_remote_write:
- url: http://cortex:9009/api/prom/push
For more details of the configuration, see the snmp exporter configuration.
Dashboards
This integration includes the following dashboards.
- SNMP Overview
SNMP Overview
Metrics
Below is a list of the metrics used on the dashboards and in alerts of the integration and are automatically written to your Grafana Cloud instance.
- ifHCInOctets
- ifHCOutOctets
- ifInErrors
- ifMtu
- ifOperStatus
- ifOutErrors
- ifPhysAddress
- ifSpeed
- ifType_info
- snmp_scrape_duration_seconds
- sysUpTime
Alerts
The integration also comes packaged with a number of handy alerts.
Group: snmp
Alert | Description |
---|---|
SNMPTargetDown | Critical: SNMP Target is down. |
SNMPTargetInterfaceDown | Warning: Network interface on SNMP target is down. |
Changelog
# 0.0.1 - September 2022
* Initial release
Cost
By connecting your SNMP instance to Grafana Cloud you might incur charges. To view information on the number of active series that your Grafana Cloud account uses for metrics included in each Cloud tier, see Active series and dpm usage and Cloud tier pricing.