Skip to content

Instantly share code, notes, and snippets.

@nickvanw
Created March 24, 2018 22:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickvanw/f92d76312398f89f263c85e67da43d5f to your computer and use it in GitHub Desktop.
Save nickvanw/f92d76312398f89f263c85e67da43d5f to your computer and use it in GitHub Desktop.
SNMP Exporter for EdgeRouter
default:
auth:
community: thisisasecret
walk:
- 1.3.6.1.2.1.1.3
- 1.3.6.1.2.1.2
- 1.3.6.1.2.1.31.1.1
metrics:
- name: sysUpTime
oid: 1.3.6.1.2.1.1.3
type: gauge
- name: ifNumber
oid: 1.3.6.1.2.1.2.1
type: gauge
- name: ifIndex
oid: 1.3.6.1.2.1.2.2.1.1
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifType
oid: 1.3.6.1.2.1.2.2.1.3
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifMtu
oid: 1.3.6.1.2.1.2.2.1.4
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifSpeed
oid: 1.3.6.1.2.1.2.2.1.5
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifPhysAddress
oid: 1.3.6.1.2.1.2.2.1.6
type: PhysAddress48
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifAdminStatus
oid: 1.3.6.1.2.1.2.2.1.7
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOperStatus
oid: 1.3.6.1.2.1.2.2.1.8
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifLastChange
oid: 1.3.6.1.2.1.2.2.1.9
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInOctets
oid: 1.3.6.1.2.1.2.2.1.10
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInUcastPkts
oid: 1.3.6.1.2.1.2.2.1.11
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInNUcastPkts
oid: 1.3.6.1.2.1.2.2.1.12
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInDiscards
oid: 1.3.6.1.2.1.2.2.1.13
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInErrors
oid: 1.3.6.1.2.1.2.2.1.14
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInUnknownProtos
oid: 1.3.6.1.2.1.2.2.1.15
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutOctets
oid: 1.3.6.1.2.1.2.2.1.16
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutUcastPkts
oid: 1.3.6.1.2.1.2.2.1.17
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutNUcastPkts
oid: 1.3.6.1.2.1.2.2.1.18
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutDiscards
oid: 1.3.6.1.2.1.2.2.1.19
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutErrors
oid: 1.3.6.1.2.1.2.2.1.20
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutQLen
oid: 1.3.6.1.2.1.2.2.1.21
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifName
oid: 1.3.6.1.2.1.31.1.1.1.1
type: DisplayString
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInMulticastPkts
oid: 1.3.6.1.2.1.31.1.1.1.2
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifInBroadcastPkts
oid: 1.3.6.1.2.1.31.1.1.1.3
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutMulticastPkts
oid: 1.3.6.1.2.1.31.1.1.1.4
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifOutBroadcastPkts
oid: 1.3.6.1.2.1.31.1.1.1.5
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCInOctets
oid: 1.3.6.1.2.1.31.1.1.1.6
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCInUcastPkts
oid: 1.3.6.1.2.1.31.1.1.1.7
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCInMulticastPkts
oid: 1.3.6.1.2.1.31.1.1.1.8
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCInBroadcastPkts
oid: 1.3.6.1.2.1.31.1.1.1.9
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCOutOctets
oid: 1.3.6.1.2.1.31.1.1.1.10
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCOutUcastPkts
oid: 1.3.6.1.2.1.31.1.1.1.11
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCOutMulticastPkts
oid: 1.3.6.1.2.1.31.1.1.1.12
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHCOutBroadcastPkts
oid: 1.3.6.1.2.1.31.1.1.1.13
type: counter
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifLinkUpDownTrapEnable
oid: 1.3.6.1.2.1.31.1.1.1.14
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifHighSpeed
oid: 1.3.6.1.2.1.31.1.1.1.15
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifPromiscuousMode
oid: 1.3.6.1.2.1.31.1.1.1.16
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifConnectorPresent
oid: 1.3.6.1.2.1.31.1.1.1.17
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifAlias
oid: 1.3.6.1.2.1.31.1.1.1.18
type: DisplayString
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
- name: ifCounterDiscontinuityTime
oid: 1.3.6.1.2.1.31.1.1.1.19
type: gauge
indexes:
- labelname: ifDescr
type: gauge
lookups:
- labels:
- ifDescr
labelname: ifDescr
oid: 1.3.6.1.2.1.2.2.1.2
type: DisplayString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment