monitoring: add postgres_exporter and Postgres alert rules #459
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#459
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?
Postgres holds both product databases (Forgejo and the portal). Monitoring today only knows whether the unit is active. Connection exhaustion, bloat, replication or slow queries produce no signal.
Add
postgres_exporteras a Quadlet unit inmonitoring-agent(same hardening and memory shape asnode-exporter), a read-only monitoring role in Postgres created by thepostgresrole, a scrape job invmagent-scrape.yml.j2, and rules for: exporter down, connections above 80 % ofmax_connections, oldest transaction age, database size growth, and a staleness rule for the exporter itself.