influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.61k stars 3.54k forks source link

Configure statuses in checks #19208

Open Anaisdg opened 4 years ago

Anaisdg commented 4 years ago

Proposal: Allow users to create more than 4 statuses to checks.

Current behavior: Currently you can only create 4 statuses: "CRIT", "INFO", "WARN", and "OK".

Desired behavior: Users can create and name additional statuses.

Alternatives considered: Manually mapping other statuses with map() and assigning "CRIT", "INFO", "WARN", and "OK" arbitrarily.

Use case: Not all monitoring use cases fit nicely into those 4 statuses. Especially in IoT application development, a status might look like "increasing", "decreasing", "charging", "discharge", "cooling", "heating", "stationary", "moving", etc.

Related to influxdata/flux#3075

kramik1 commented 3 years ago

Similar in scope but slightly different, it would be nice to be able to assign a numerical value in another column that matches the status. For example, ok=1, warn=2, crit=3. Right now I am mapping these values every query to get a weighted status over a 2 minute window to avoid flipping values and alert notifications. I also due this because the monitoring database is internal so I cannot share access with grafana without giving it a full access token,