collector: add fields to SNMP scraper
Collect system location and uptime.
This commit is contained in:
parent
71152fe652
commit
e3c644a9e7
1 changed files with 9 additions and 0 deletions
|
|
@ -25,6 +25,15 @@
|
|||
oid = "RFC1213-MIB::sysName.0"
|
||||
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
|
||||
[[inputs.snmp.table]]
|
||||
name = "iface"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue