els0r / goProbe

High-performance IP packet metadata aggregation and efficient storage and querying of flows
GNU General Public License v2.0
12 stars 4 forks source link

Prometheus error counters not reset / ever growing #281

Closed fako1024 closed 7 months ago

fako1024 commented 7 months ago

It seems that whenever a packet parsing error is encountered it leads to the respective Prometheus metric being increased constantly (by the last value for the internal error counter) without any further errors occuring.

Best guess: The stats are not reset (because the method doesn't use a pointer receiver) or we're just using the counter incorrectly (we don't want to add the total, just the difference w.r.t. the last occurrence).

DoD