1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/sysutils/snmp_exporter/files/generator.yml
Li-Wen Hsu b499b17096 Add sysutils/snmp_exporter, SNMP Exporter for Prometheus
PR:		226223
Submitted by:	Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
Differential Revision:	https://reviews.freebsd.org/D14526
2018-02-27 19:57:56 +00:00

24 lines
697 B
YAML

modules:
# Default IF-MIB interfaces table with ifIndex.
if_mib:
walk: [sysUpTime, interfaces, ifXTable]
# Interfaces if ifAlias is unique.
if_mib_ifalias:
walk: [sysUpTime, interfaces, ifXTable]
lookups:
- old_index: ifIndex
new_index: ifAlias
# Interfaces if ifDescr is unique.
if_mib_ifdescr:
walk: [sysUpTime, interfaces, ifXTable]
lookups:
- old_index: ifIndex
new_index: ifDescr
# Interfaces if ifName is unique.
if_mib_ifname:
walk: [sysUpTime, interfaces, ifXTable]
lookups:
- old_index: ifIndex
# Use OID to avoid conflict with Netscaler NS-ROOT-MIB.
new_index: 1.3.6.1.2.1.31.1.1.1.1 # ifName