grafana/grafana-mixin/alerts
lpugoy c792af3ad0
grafana-mixin: Fix expression for GrafanaRequestsFailing alert (#63382)
Fix expression for GrafanaRequestsFailing alert

The intent of the alert is to get the ratio of 5xx to all status codes
[^1]. With the original expression, the left hand side can have more than
one row with the same labels except for the status code. This results in
a promql error because it is doing a many-to-one matching. Doing a sum
on the left hand side first should preserve the intent of the alert and
resolve the issue.

[^1]: https://github.com/grafana/grafana/pull/43116
2023-05-04 14:35:36 +02:00
..
alerts.libsonnet grafana-mixin: Fix expression for GrafanaRequestsFailing alert (#63382) 2023-05-04 14:35:36 +02:00