fix(monitoring): name the host in unit and container alert annotations #654

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/keycloak-alert-host-label in i main 2026-10-11 09:28:31 +00:00
Ägare

Refs #573.

Unit and container alert annotations printed $labels.instance, which is the scrape address (node-exporter:9100) on real series. They now print $labels.host.

  • Rules: CoreUnitDown, ContainerUnhealthy, ContainerFlapping, KeycloakNotReady, KeycloakMemoryHigh.
  • Test fixtures carry host and expect it.
  • ScrapeTargetDown keeps instance: it comes from scrape metadata.
  • Other textfile-fed rules (backup, reconciler, retention, stale-metric) still use instance. Separate sweep.

KeycloakMemoryHigh fire and no-fire cases pass in scripts/test-alert-rules.py. Raising the fixture to 75% makes the fire case fail, so the test can fail. Live firing needs a scraped Keycloak host, so it waits for the cutover.

Checked: scripts/test-alert-rules.py, scripts/check-alert-rules.py (56 rules), pre-push hooks.

Refs #573. Unit and container alert annotations printed `$labels.instance`, which is the scrape address (`node-exporter:9100`) on real series. They now print `$labels.host`. - Rules: `CoreUnitDown`, `ContainerUnhealthy`, `ContainerFlapping`, `KeycloakNotReady`, `KeycloakMemoryHigh`. - Test fixtures carry `host` and expect it. - `ScrapeTargetDown` keeps `instance`: it comes from scrape metadata. - Other textfile-fed rules (backup, reconciler, retention, stale-metric) still use `instance`. Separate sweep. `KeycloakMemoryHigh` fire and no-fire cases pass in `scripts/test-alert-rules.py`. Raising the fixture to 75% makes the fire case fail, so the test can fail. Live firing needs a scraped Keycloak host, so it waits for the cutover. Checked: `scripts/test-alert-rules.py`, `scripts/check-alert-rules.py` (56 rules), pre-push hooks.
supernaut lade till 1 incheckning 2026-10-11 09:20:40 +00:00
fix(monitoring): name the host in unit and container alert annotations
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m49s
05ff719967
supernaut tvångsskickade fix/keycloak-alert-host-label från 05ff719967
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m49s
till aa3d24300a
Alla kontroller lyckades
ci / ci (pull_request) Successful in 1m51s
2026-10-11 09:26:10 +00:00
Jämför
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-11 09:26:13 +00:00
supernaut sammanfogade incheckning 315cbca0c3 till main 2026-10-11 09:28:31 +00:00
supernaut tog bort grenen fix/keycloak-alert-host-label 2026-10-11 09:28:31 +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!654
Ingen beskrivning angiven.