Watch
0
0
Fork
You've already forked hyperhive
0

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:
iris 2026-11-25 00:58:23 +01:00
commit 928fe568dd

View file

@ -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 |