fix(backup): seed the storage warnings gauge so its alert is never vacuous #712

Sammanfogat
supernaut sammanfogade 1 incheckning från fix/seed-storage-warnings-gauge in i main 2026-10-13 09:17:31 +00:00
Ägare

BackupStorageWarnings (#704) reads bitborg_backup_storage_last_run_warnings, which the storage backup script writes only when it runs. Until the first run after an apply the rule fetches no series, and VacuousAlertRule fires (seen on prod 2026-10-13).

The backup role now appends the gauge with value 0 to backup-storage-status.prom when the line is missing. A present value, including 1, is left alone, and the next script run rewrites the whole file.

Apply with --tags backup. VacuousAlertRule clears within a scrape interval.

BackupStorageWarnings (#704) reads `bitborg_backup_storage_last_run_warnings`, which the storage backup script writes only when it runs. Until the first run after an apply the rule fetches no series, and VacuousAlertRule fires (seen on prod 2026-10-13). The backup role now appends the gauge with value 0 to `backup-storage-status.prom` when the line is missing. A present value, including 1, is left alone, and the next script run rewrites the whole file. Apply with `--tags backup`. VacuousAlertRule clears within a scrape interval.
supernaut lade till 1 incheckning 2026-10-13 09:13:57 +00:00
fix(backup): seed the storage warnings gauge so its alert is never vacuous
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m4s
afce594dc6
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-13 09:16:21 +00:00
supernaut sammanfogade incheckning 29d9c899be till main 2026-10-13 09:17:31 +00:00
supernaut tog bort grenen fix/seed-storage-warnings-gauge 2026-10-13 09:17: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!712
Ingen beskrivning angiven.