collectd icon indicating copy to clipboard operation
collectd copied to clipboard

write_riemann thresholds does not honor Hits

Open faxm0dem opened this issue 9 years ago • 2 comments

  • Version of collectd: 5.5.2.20.gaf16be6
  • Operating system / distribution: CentOS 6

Expected behavior

When defining a threshold using e.g. Hits 4 the state sent along the events to riemann should take this into account: only change state to warning|critical after 4 intervals of hitting the thresh.

Actual behavior

As soon as the threshold is passed, events start appearing as state warning|critical. Notifications however nicely hit the deck only after 4 iterations.

Steps to reproduce

  • define threshold with Hits 1000
  • trigger threshold
  • query riemann for state != "ok"

faxm0dem avatar Oct 05 '16 09:10 faxm0dem

src/write_riemann_threshold.c duplicates much of the original threshold code. This should be unified while fixing this IMHO.

octo avatar Oct 27 '16 20:10 octo

src/write_riemann_threshold.c duplicates much of the original threshold code. This should be unified while fixing this IMHO.

@octo Maybe there should be a separate ticket about such unification (referring this ticket)?

eero-t avatar Jan 26 '24 11:01 eero-t