Grafana: Define alert on a ratio

Viewed 268

Is there any way to define an alert based on a condition that describes a ratio in Grafana?

For example I have a query that counts the failed HTTP requests and another one that holds the total number of requests. Is there a way to define an alert with the following condition

WHEN (query_failed/query_total,5m,now) IS ABOVE 0.75

Unfortunately I cannot use Grafana's transformation feature since lovely Grafana prompts me with the following

Transformations are not supported in alert queries

I am using Influx 1.7.4

0 Answers
Related