toni-moreno / snmpcollector

A full featured Generic SNMP data collector with Web Administration Interface for InfluxDB
MIT License
286 stars 53 forks source link

[Bug] Device stats metrics `filter_duration` always is 0 #514

Closed sbengo closed 2 years ago

sbengo commented 2 years ago

After the refactor of core logic to gather metrics, on version 0.12.0+ (now all the logic remains on the measurement instead of the device), the metric filter_duration seems to have some problem and always is sending 0 as the value, even if the log is showing the correct information.

Example:

time="2022-01-11 16:40:00" level=info msg="snmp INIT runtime measurements/filters took [402.449745ms] " device=X.X.X.X measurement=DLINK_IfCounterStatistics
> select filter_duration from selfmon_device_stats
name: selfmon_device_stats
time                   filter_duration
----                   ---------------
2022-01-11T 16:40:00Z  0