influxdata / influxdata/kapacitor

Feature Request: Add StateCount() node functionality for Alert OK events

Open
#2,053 2 comments 0 reactions 1 assignee Claimed by @nathanielc View on GitHub
Dominant language
Go
Stars
2.4k
Forks
479
Avg merge
4d 16h
Merged PRs (30d)
4

Description

Currently, the StateCount node allows one to define an alert lambda and count the number of consecutive points that satisfy it. But as soon as a single point causes the lambda to evaluate to false, the StateCount is reset. We have a need to also be able to count the number of consecutive times a lambda evaluates to false before clearing the alert. Something like an OKCount() node.

Ex: Alert lambda: "CPU" > 80
Send a critical alert if there are 5 points in a row that have value > 80
Cancel/OK the alert only when 5 points in a row are < 80

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.