v1.6.0 caps large integer values for SNMP metrics at 2147483647 #4052
Labels
bug
unexpected problem or unintended behavior
regression
something that used to work, but is now broken
Milestone
Bug report
After upgrading to v1.6.0, any values from SNMP input plugin larger than 2147483647 were reported as 2147483647 instead of their true value. I noticed this for network interface counter metrics.
Relevant telegraf.conf:
I haven't included whole config, but here's a snippet for getting 'if_counter' values from my SNMP-monitored hosts:
System info:
Telegraf 1.6.0-1
System is a Raspberry Pi 3 (armhf) running latest Raspbian Stretch Lite
Steps to reproduce:
Expected behavior:
The true values from the interface counters should be reported, like this:
Actual behavior:
Values are all capped at 2147483647 before being sent:
Additional info:
This works fine in 1.5.3-1 (and many previous versions too).
Just to make sure it was 1.6.0-1 causing the issue, I downgraded Telegraf using the following commands (I kept the exact same config) and now the correct values are being sent again:
Use case: [Why is this important (helps with prioritizing requests)]
I'm not sure if this just affects SNMP or is a general issue with Telegraf and large (bigger than 32-bit) integers, but it feels quite important.
The text was updated successfully, but these errors were encountered: