EdgeRouter X SFP – SNMP Exporter metrics not showing in Grafana

Body:

1. What Grafana version and what operating system are you using?

  • Grafana 12.2.1

  • Prometheus 3.7.2

  • SNMP Exporter 0.29.0 on Ubuntu 24.04.3 LTS

  • EdgeRouter X SFP with firmware 3.0.0

2. What are you trying to achieve?
I want to monitor my EdgeRouter X using SNMP, collecting the following metrics:

  • System uptime

  • CPU load per processor

  • Total RAM

  • Interface traffic (eth0 Rx/Tx)

  • Total Rx/Tx across all interfaces

The goal is to visualize these metrics in Grafana using the EdgeRouter dashboard template.

3. How are you trying to achieve it?
I enabled SNMP in the router CLI and configured a module in snmp.yml for Prometheus’ SNMP Exporter. My module includes the following walks and metrics:

modules:
  ubiquiti:
    walk:
      - hrProcessorLoad
      - hrMemorySize
      - ifInOctets
      - ifOutOctets
      - sysUpTime
    metrics:
      - name: cpu_load
        oid: hrProcessorLoad
        type: gauge
      - name: ram_total_bytes
        oid: hrMemorySize
        type: gauge
      - name: if_in_bytes
        oid: ifInOctets
        type: counter
      - name: if_out_bytes
        oid: ifOutOctets
        type: counter
      - name: uptime_seconds
        oid: sysUpTime
        type: gauge
      - name: eth0_rx
        oid: ifInOctets.4
        type: counter
      - name: eth0_tx
        oid: ifOutOctets.4
        type: counter

4. What happened?
Prometheus sees the SNMP module and scrapes it, e.g.:

snmp_scrape_duration_seconds{module="ubiquiti"} 0.016
snmp_scrape_packets_sent{module="ubiquiti"} 7

…but no actual metrics like cpu_load, ram_total_bytes, or interface traffic appear.

5. What did you expect to happen?
I expected Prometheus to export the SNMP metrics so that I could visualize them in Grafana. CPU, RAM, uptime, and interface traffic metrics should appear under the ubiquiti module.

6. Can you copy/paste the configuration(s) that you are having problems with?
Yes – see above snmp.yml snippet.

7. Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
No errors appear in Grafana or Prometheus logs. The SNMP Exporter logs show that it scraped successfully, but no metrics are populated.

8. Did you follow any online instructions? If so, what is the URL?
Yes, I tried following the Grafana dashboard tutorial for EdgeRouter X:

  • Dashboard ID 7963 on Grafana.com

  • Various SNMP Exporter configuration guides for Prometheus

Additional info:

  • Manual SNMP queries to the router work, e.g.:
snmpget -v2c -c public router.local hrProcessorLoad.196608
snmpget -v2c -c public router.local ifInOctets.4

They return proper values.

  • I suspect the problem is either with snmp.yml or Prometheus labels/indexes.

Question: Has anyone successfully configured SNMP Exporter for an EdgeRouter X SFP and can share a working module snippet for CPU, RAM, uptime, and interface metrics?