collector: add fields to SNMP scraper

Collect system location and uptime.
This commit is contained in:
Timotej Lazar 2025-10-27 23:30:07 +01:00
parent 71152fe652
commit e3c644a9e7

View file

@ -25,6 +25,15 @@
oid = "RFC1213-MIB::sysName.0" oid = "RFC1213-MIB::sysName.0"
is_tag = true is_tag = true
[[inputs.snmp.field]]
name = "location"
oid = "RFC1213-MIB::sysLocation.0"
[[inputs.snmp.field]]
name = "uptime"
oid = "RFC1213-MIB::sysUpTime.0"
conversion = "float(2)"
# interface table # interface table
[[inputs.snmp.table]] [[inputs.snmp.table]]
name = "iface" name = "iface"