feat(monitoring): backup and ops dashboards, memory cap review #832

Sammanfogat
supernaut sammanfogade 2 incheckningar från feat/dashboards-and-memory-caps in i main 2026-10-19 22:54:14 +00:00
Ägare

What

  • Memory caps (#569): the runbook records a 7-day peak and p99 for Keycloak, Forgejo, VictoriaMetrics, Alertmanager, vmalert and blackbox against their caps. No cap changed: the highest is Keycloak at 72% of its max. monitoring_memory_units now also exports bitborg_unit_memory_current_bytes for forgejo, postgres, caddy, bitborg-web and runner-controller, so the cgroup peak of Postgres and Forgejo can be read after a week.
  • Dashboards (#301): new bitborg-backup and bitborg-ops dashboards. Overview disk panel filters to the services host. Host load panels divide by vCPU count, thresholds 1 and 2. Deploy annotation on host, forgejo and runners. Endpoint up/down is a state timeline with up/DOWN mappings. The web Up/Down mappings were already present.

Refs #569. Closes #301.

Operator steps

  • Apply the monitoring-agent role to both hosts (--tags per the runbook) so the new memory series appear.
  • Apply the monitoring role (--tags dashboards) to provision the two new dashboards and the edited ones.
  • About 2026-10-27: re-run the 7-day peak and p99 queries for postgres and forgejo from bitborg_unit_memory_current_bytes, set the caps, then close #569.
  • Decide whether bitborg_renovate_peak_rss_bytes (cgroup memory.peak, pinned at the 3 GiB cap) should be replaced by an anon-only metric. The 60% escalation rule cannot be evaluated with it.
## What - Memory caps (#569): the runbook records a 7-day peak and p99 for Keycloak, Forgejo, VictoriaMetrics, Alertmanager, vmalert and blackbox against their caps. No cap changed: the highest is Keycloak at 72% of its max. `monitoring_memory_units` now also exports `bitborg_unit_memory_current_bytes` for forgejo, postgres, caddy, bitborg-web and runner-controller, so the cgroup peak of Postgres and Forgejo can be read after a week. - Dashboards (#301): new `bitborg-backup` and `bitborg-ops` dashboards. Overview disk panel filters to the services host. Host load panels divide by vCPU count, thresholds 1 and 2. Deploy annotation on host, forgejo and runners. Endpoint up/down is a state timeline with up/DOWN mappings. The web Up/Down mappings were already present. Refs #569. Closes #301. ## Operator steps - [ ] Apply the monitoring-agent role to both hosts (`--tags` per the runbook) so the new memory series appear. - [ ] Apply the monitoring role (`--tags dashboards`) to provision the two new dashboards and the edited ones. - [ ] About 2026-10-27: re-run the 7-day peak and p99 queries for `postgres` and `forgejo` from `bitborg_unit_memory_current_bytes`, set the caps, then close #569. - [ ] Decide whether `bitborg_renovate_peak_rss_bytes` (cgroup `memory.peak`, pinned at the 3 GiB cap) should be replaced by an anon-only metric. The 60% escalation rule cannot be evaluated with it.
supernaut lade till 2 incheckningar 2026-10-19 19:10:37 +00:00
Only keycloak had a cgroup memory series, so the Postgres and Forgejo caps
could not be reviewed from Prometheus. Export forgejo, postgres, caddy,
bitborg-web and runner-controller too. The runbook records 7-day peak and
p99 for the units that have a series.

Refs #569
feat(monitoring): add backup and ops dashboards, fix overview disk filter
Alla kontroller lyckades
ci / ci (pull_request) Successful in 10m14s
9f86a639d5
Add bitborg-backup and bitborg-ops dashboards. Filter the overview disk panel
to the services host. Show load per vCPU on the host dashboard with 1 and 2
thresholds. Add the deploy annotation to host, forgejo and runners. Turn the
endpoint up/down graph into a state timeline.

Closes #301
supernaut sammanfogade incheckning 432d2d9344 till main 2026-10-19 22:54:14 +00:00
supernaut tog bort grenen feat/dashboards-and-memory-caps 2026-10-19 22:54:15 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra!832
Ingen beskrivning angiven.