monitoring: alert when Renovate has not run, not just when it fails #330
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra#330
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
RenovateRunFailedonly fires ongitborg_renovate_last_run_status != 0. That metric is anode_exporter textfile metric, so it is sticky: it keeps serving the last value written by the
last run, forever. If the timer is masked, the unit is removed, or the wrapper never reaches its
metric write, the last
status 0sits there indefinitely and nothing alerts. A Renovate that hassimply stopped is currently invisible.
The wrapper already writes
gitborg_renovate_last_run_timestamp_seconds— it is scraped and unused.Proposed rule, alongside
RenovateRunFailedinansible/roles/monitoring/templates/alert-rules.yml.j2:48h (not 24h) so a single skipped or long-delayed night does not page;
RandomizedDelaySec=300plusPersistent=truemake the exact fire time jittery.Acceptance: rule renders,
promtool/vmalert accepts it, and it fires in a check by temporarilyback-dating the textfile in a scratch copy (not on the host).