feat(monitoring): alert on billing processing failures #696
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!696
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "feat/billing-failure-alerts"
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
Adds the
BillingPaymentProcessingFailingLoki alert (warning). It fires on one of thesebitborg-billinglines in the last hour:[webhook] failed[webhook] ... has an open chargeback; left unprocessed[refund] ... not issued[sweep] ...[reconcile] chargebacks not listed[reconcile] chargebacks of ... not appliedThe rule renders only when
billing_enabledis true. Prod has payments off, but the complimentary sweep still runs and logs[sweep]errors. Adds a runbook section and a log-line test case.Why
A revoked Mollie key leaves the container healthy and every webhook returns 500. Nothing alerted, and Mollie stops retrying after about 26 hours.
The webhook line is fixed text since bitborg-payment#139, so outside input cannot forge it.
Verified
scripts/test-alert-rules.py: new case matches every line shape above, including[sweep] complimentaryand rejectswas refunded or charged back ... left unprocessed,[reconcile] failed:and the startup line.scripts/check-alert-rules.py: passes.container="bitborg-billing"has streams, same selector asBillingReconcileManualReview.Apply:
--tags monitoring.Closes #692