mxschmitt / fritzbox_exporter

Prometheus Exporter for FRITZ!Box (TR64 and UPnP)
https://mxschmitt.github.io/fritzbox_exporter
Apache License 2.0
58 stars 17 forks source link

Jumping counter on connection loss #17

Open sh0rez opened 4 years ago

sh0rez commented 4 years ago

Because my FritzBox currently frequently loses the DSL Connection (thanks 1and1), I started monitoring it with this tool.

However, the gateway_wan_bytes_received and gateway_wan_bytes_sent counters show an odd behaviour:

Screen Shot 2020-04-18 at 13 04 28

Prometheus counters should never jump between two levels – only ever reset and rise again. This yields the rate of this metric unusable, because it suggests a throughput of over 25MB/s, which is far higher than the 6MB/s = 50MBit/s my connection can handle

tillepille commented 3 years ago

Did you try irate ? This should adjust for counter resets.