feat(monitoring): alert on billing webhook, refund and sweep failures #692

Stängd
öppnade 2026-10-12 13:15:11 +00:00 av supernaut · 0 kommentarer
Ägare

The only billing alert is BillingReconcileManualReview (ansible/roles/monitoring/templates/loki-alert-rules.yml.j2:154-170). These billing log lines alert on nothing:

  • [webhook] failed
  • [refund] ... not issued
  • [sweep] ... failures
  • [reconcile] chargebacks not listed
  • [webhook] ... has an open chargeback; left unprocessed

Failing case: the Mollie key is revoked. The container stays healthy, every webhook returns 500, and nothing alerts. Mollie stops retrying after about 26 hours.

Fix: one Loki rule on those lines in the bitborg-billing container, gated on billing_payments_enabled. The webhook log line must stop echoing the payment id first (see bitborg-payment, webhook id validation), or the rule can be triggered from outside.

The only billing alert is `BillingReconcileManualReview` (`ansible/roles/monitoring/templates/loki-alert-rules.yml.j2:154-170`). These billing log lines alert on nothing: - `[webhook] failed` - `[refund] ... not issued` - `[sweep] ...` failures - `[reconcile] chargebacks not listed` - `[webhook] ... has an open chargeback; left unprocessed` Failing case: the Mollie key is revoked. The container stays healthy, every webhook returns 500, and nothing alerts. Mollie stops retrying after about 26 hours. Fix: one Loki rule on those lines in the `bitborg-billing` container, gated on `billing_payments_enabled`. The webhook log line must stop echoing the payment id first (see bitborg-payment, webhook id validation), or the rule can be triggered from outside.
Logga in för att delta i denna konversation.
Ingen milstolpe
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#692
Ingen beskrivning angiven.