Alert ideas¶
These are starting points, not a shipped rule pack. Adjust for your Prometheus / Alertmanager / Grafana stack. No runbooks are provided here (operational playbooks come later).
Fleet¶
Per-agent series capped¶
Meaning: fleet larger than metrics.per_agent_series_limit; per-uid
series omitted. UI/API still have per-agent data.
Many disconnected agents¶
Tune with > threshold or ratio vs grex_fleet_size for your environment.
Evictions increasing¶
Agents disappearing after missed check-ins—network, agent crash, or heartbeat settings too aggressive.
Noncompliant agents¶
Required attributes missing; fix agent OpAMP description config.
Awaiting full state after deploy¶
Normal briefly after grex restart; alert if sustained.
Server¶
OpAMP decode errors¶
API error rate¶
API latency¶
Process up¶
Rely on scrape failure of grex-server and/or up{job="grex-server"} == 0
rather than grex-specific series alone.
Config drift¶
Compare grex_config_info label values after a rollout (recording rules or
Grafana checks) to ensure the running process matches intended
heartbeat_interval, TLS flags, and series limit.