grafana: make the hive degraded alert name the critical warning
The alert read the per-hive degraded gauge, so it could not say which warning raised it and sent the operator to a second alert. It now reads the critical warning series, one instance per kind, and the summary names the kind. The docs and the module-eval check follow. The message text is not in the alert, only in the hive-c0re log.
This commit is contained in:
parent
09de25b0ed
commit
928fe568dd
1 changed files with 31 additions and 8 deletions
|
|
@ -567,7 +567,7 @@ The swarm Grafana (`nix/host-modules/swarm-grafana.nix`) alerts on these:
|
|||
|
||||
| Alert | Fires when |
|
||||
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `hh-hive-degraded` | `hyperhive.hive.degraded` is `1` for 2 minutes |
|
||||
| `hh-hive-degraded` | any `hyperhive.hive.warning` series at level `crit` exists for 2 minutes, one alert per `kind` |
|
||||
| `hh-hive-warning` | any `hyperhive.hive.warning` series other than `disk_pressure` exists (`pending_logins` only for a hive that doesn't export `hyperhive.agent.needs_login`) for 2 minutes |
|
||||
| `hh-agent-needs-login` | `hyperhive.agent.needs_login` is `1` for an agent for 5 minutes, one alert per agent |
|
||||
| `hh-agent-oom-kills` | `hyperhive.container.memory.oom_kills` grew by more than 3 in the last hour for an agent, one alert per agent, no delay |
|
||||
|
|
|
|||
Loading…
Reference in a new issue