I want to collect only 1.3.6.1.2.1.31.1.1.1.10 and 1.3.6.1.2.1.31.1.1.1.6 OID from my devices via snmp_exporter. Is there any way to do it? I tried to generate snmp.yml file and cleaned generator.yml but still i got all OIDs and collection them took to much time (such as 2minutes :( )
modules:
if_mib:
walk: [sysUpTime, interfaces, ifXTable]
lookups:
- source_indexes: [ifIndex]
lookup: ifAlias
overrides:
ifAlias:
ignore: true # Lookup metric
ifDescr:
ignore: true # Lookup metric
ifName:
ignore: true # Lookup metric
ifType:
type: EnumAsInfo
customsnmp:
walk:
- 1.3.6.1.2.1.31.1.1.1.6 # Instance of "ifHCInOctets"
- 1.3.6.1.2.1.31.1.1.1.10 # Instance of "ifHCOutOctets"
auth:
community: aliveli