Strange behavior in Telegraf SNMP plugin

grafana
telegraf
#1

Hello, i’m using telegraf to obtain information from my internet router with SNMP plugin, but i see this strange behavior ( I have a 2mbps/2mbps of internet, so the max has to be of 256 KBytes/s, but i see in this 400 Kbytes/s). I will started this in GitHub Issues (https://github.com/influxdata/telegraf/issues/3411)

My Configuration is

[[inputs.snmp]]
agents = [ “190.6.71.161” ]
version = 2
community = “public”
name = “router_internet”
interval = “10s”

[[inputs.snmp.field]]
name = “rx”
oid = “IF-MIB::ifInOctets.1286”

[[inputs.snmp.field]]
name = “tx”
oid = “IF-MIB::ifOutOctets.1286”

[[inputs.snmp.field]]
name = “erx”
oid = “IF-MIB::ifInErrors.1286”

[[inputs.snmp.field]]
name = “etx”
oid = “IF-MIB::ifOutErrors.1286”

#2

Before that I used InfluxDB with Telegraf i was code a ruby program to get the SNMP data from the router and to do the maths i get the “uptime” of the router, no taking into account the request time configured into the script… example… If I request with 10s of interval, but my slow router respond at 15s, if i use the 10s to make the calculation, then the bytes consumed is wrong, but if i use the “uptime” (1.3.6.1.2.1.1.3.0 – sysUpTime) of the router then I assume that using the difference between “uptime” requests is the right calculation.