Description
The Prometheus SNMP Exporter is the recommended way to expose SNMP data in a format Prometheus can ingest. SNMP stores data in hierarchical OID trees described by MIBs, while Prometheus uses labelled metrics, and the exporter maps one to the other without walking the data by hand. SNMP index instances become Prometheus labels, so an interface index in the IF-MIB table appears as an ifIndex label. A single instance can serve thousands of devices. The README recommends starting with the if_mib module on switches, access points or routers, using the public_v2 auth module, which should be a read-only community on the device. It warns that SNMP community strings are not secrets in v1 and v2c, which send them unencrypted, so SNMPv3 is required for secure access. Binaries are published on the GitHub releases page, and a sample systemd unit file is included. The examples directory has sample configurations for a local workstation, network devices, SNMPv2c and SNMPv3 authentication, and HTTP proxies. A scrape is made by visiting the exporter with a target address, and the transport, port, auth and module can be chosen in the URL or the snmp.yml file. The project is on GitHub under prometheus/snmp_exporter.…
Highlights
- Exposes SNMP data to Prometheus
- Maps SNMP index values to Prometheus labels
- One instance scrapes thousands of devices
- Built-in if_mib module for switches and routers
- SNMPv3 authentication examples
Ratings & Reviews
No ratings yet
Be the first to rate Snmp Exporter.
People also visit
Snmp Exporter FAQ
What does the SNMP Exporter do?
It converts SNMP data from network devices into a format Prometheus can ingest, mapping SNMP tables to labelled metrics.
Is it free?
Yes. It is open source and hosted on GitHub. Binaries are on the releases page.
How do I get started?
The README recommends the if_mib module with the public_v2 auth module on switches, access points or routers, with a read-only community.
Is SNMPv2c secure?
The README says community strings are sent unencrypted in v1 and v2c and are not secrets. For secure access, SNMPv3 is required.
Can one exporter serve many devices?
Yes. The README says a single instance can run for thousands of devices.
How do I choose a transport or port?
Use the [transport://]host[:port] syntax in the URL, for example to scrape over tcp on a non-default port.
Where are sample configurations?
In the examples/sample-configs directory, covering workstations, network devices and SNMPv2c or v3 authentication.
What are the best Snmp Exporter alternatives?
Popular alternatives to Snmp Exporter include Opnsense Exporter, SQL Exporter and Prometheus Nats Exporter. See all Snmp Exporter alternatives


