mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 08:57:19 +08:00
The previous approach fails because of the "missing data" semantics in Prometheus. If the Redis server is down, PromQL will typically return "no data" instead of 0 for a `count()`; this is by design in Prometheus. This suggestion as given by @slovdahl works around this by returning an vector with a single `0` entry in this case, making the query work as intended. |
||
|---|---|---|
| .. | ||
| rules.yml | ||