Renumber SNMP indexes using snmp_exporter?

13 views
Skip to first unread message

Elliott Balsley

unread,
Mar 31, 2025, 8:00:26 PMMar 31
to Prometheus Users
If an SNMP table uses indexes 0 thru 7, is there a way to renumber it 1 thru 8?

For example I'm using this lookup to add outlet labels to a PDU:

    lookups:
      - source_indexes: [outletIndex]
        lookup: outletName
        drop_source_indexes: false

The resulting metric looks like this:
outletActualStatus{outletIndex="0",outletName="MacStudio"} 1

I want it to look like this
outletActualStatus{outletIndex="1",outletName="MacStudio"} 1

I tried playing with the `offset` option but that seems to only affect the value, not the label.
Reply all
Reply to author
Forward
0 new messages