feat(monitoring): renovate, withdrawal and postgres alerts #829
Inga granskare
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
priority
high
priority
low
priority
medium
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!829
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/alerts-renovate-refunds-postgres"
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?
What
Three monitoring changes, one commit each.
RenovateRunSlowfires when every run in the last 3 days took over 90 minutes (the runbook escalation trigger). Peak memory is not alerted:bitborg_renovate_peak_rss_bytesis cgroupmemory.peak, which includes page cache and sits near the cap on healthy runs. Cache disk use is covered by the host disk alerts. The runbook says so.WithdrawalNeedsManualSettlementonbitborg-weblines matching[withdraw] .*settle by hand(failed refund, stale or invalid request). Same routing as the other Loki rules. Runbook entry "Withdrawal alert". No overlap with #692, which covers the billing container only.postgres_exporterQuadlet unit inmonitoring-agent, read-onlybitborg_monitorrole (member ofpg_monitor) created by thepostgresrole, scrape jobpostgres, and rulesPostgresDown,PostgresExporterSilent,PostgresConnectionsHigh,PostgresLongTransaction,PostgresDeadlocks,PostgresDatabaseGrowing. Runbook section "Postgres alerts".Dependencies and limits
[withdraw] refund failed, settle by hand sub=<sub>and[withdraw] request stale or invalid, settle by hand sub=<sub> reason=<stale|invalid>). The regex also matches the older wording.Operator steps
vault_postgres_monitor_password(openssl rand -hex 24) to the prod and staging vaults. Applies fail without it.--tags postgres,monitoring-agenton staging, then prod, then--tags monitoringfor the rules.pg_up,pg_settings_max_connections,pg_stat_database_numbackendsandpg_long_running_transactions_oldest_timestamp_secondsexist in Grafana.VacuousAlertRuleflags a wrong name after 30 min.