You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntelMQ built-in statistics feature works in the way, that after every restart of the bot, statistics are considered to be counted from 0 (code).
The statistics cache is updated in __stats method. Successful and failure stats are sent every time (with the respect to the delay), however the number of sent messages (lines 472-474) is updated only when a message was sent - paths are never filled with 0, the defaultdict is used. This means, that from the restart to the first sent message, the Redis statistic cache and IntelMQ message counter are out of sync.
Why is it important?
I have a case with daily restarted collector that produces just a one message daily. Due to the described behavior, the cached stats are always filed with 1 - either because it wasn't updated, or because the first message was sent.
The text was updated successfully, but these errors were encountered:
kamil-certat
changed the title
Statistics never resets path_total value
Statistics never reset path_total value
Mar 9, 2023
After restarting a bot, ensure that statistics about sent
messages are zeroes in the stats cache. Previously, it
was done after the first message to a path. Before this,
the internal counter and stats cache were out of sync.
Fixescerttools#2331
After restarting a bot, ensure that statistics about sent
messages are zeroes in the stats cache. Previously, it
was done after the first message to a path. Before this,
the internal counter and stats cache were out of sync.
Fixescerttools#2331
IntelMQ built-in statistics feature works in the way, that after every restart of the bot, statistics are considered to be counted from 0 (code).
The statistics cache is updated in
__stats
method. Successful and failure stats are sent every time (with the respect to the delay), however the number of sent messages (lines 472-474) is updated only when a message was sent - paths are never filled with 0, thedefaultdict
is used. This means, that from the restart to the first sent message, the Redis statistic cache and IntelMQ message counter are out of sync.Why is it important?
I have a case with daily restarted collector that produces just a one message daily. Due to the described behavior, the cached stats are always filed with 1 - either because it wasn't updated, or because the first message was sent.
The text was updated successfully, but these errors were encountered: