Alert rules¶
Charmed Valkey ships Prometheus and Loki alert rules. When you enable monitoring, Prometheus and Loki load the rules and send the alerts that fire to Alertmanager. To send alerts to email, Slack or another receiver, see Integrate Alertmanager receivers. To change or add rules, see Customize alert rules.
To see the rules and their state, open Alerting > Alert rules in Grafana and search for
valkey. Each Charmed Valkey model has one Prometheus group and one Loki group:

Prometheus rules¶
Alert |
Severity |
Fires when |
|---|---|---|
|
critical |
The exporter cannot reach Valkey on a unit for 1 minute. |
|
critical |
No unit reports the primary role for 1 minute. |
|
critical |
More than one unit reports the primary role for 1 minute, which means a split brain. |
|
critical |
For 2 minutes, the primary has fewer connected replicas than there are other running Valkey units. |
|
critical |
A replica has lost its link to the primary for 2 minutes. |
|
critical |
The last background RDB save failed. Valkey rejects writes until a save succeeds. |
|
critical |
The last append-only file write failed. |
|
critical |
The last append-only file rewrite failed. |
|
critical |
For 2 minutes, the number of connected replicas changes more than once a minute. |
|
warning |
Valkey uses more than 90% of the system memory for 2 minutes. On Kubernetes, this is the node’s memory, not the pod limit. |
|
warning |
Valkey uses more than 90% of its |
|
warning |
Connected clients exceed 90% of |
Loki rules¶
Alert |
Severity |
Fires when |
|---|---|---|
|
critical |
Valkey logs |
|
warning |
Sentinel logs a |