Skip to content

Commit 2206f7e

Browse files
easyCZroboquat
authored andcommitted
[usage] Alert on stripe webhooks and invoice finalize
1 parent 39c5542 commit 2206f7e

File tree

1 file changed

+11
-0
lines changed
  • operations/observability/mixins/meta/rules

1 file changed

+11
-0
lines changed

operations/observability/mixins/meta/rules/usage.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ spec:
3636
summary: There are failed Stripe invoice reconciliations.
3737
description: We have accumulated {{ printf "%.2f" $value }} failures. This affects how much customers will be billed.
3838

39+
- alert: GitpodUsageBillingServiceFinalizeInvoiceFailures
40+
expr: sum(increase(grpc_server_handled_total{grpc_service="usage.v1.BillingService", grpc_method="FinalizeInvoice", grpc_code!="OK"})) > 1
41+
for: 30m
42+
labels:
43+
severity: warning
44+
team: webapp
45+
annotations:
46+
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodUsageBillingServiceFinalizeInvoiceFailures.md
47+
summary: Invoice finalization is failing. We are not balancing out user/team usage.
48+
description: We have accumulated {{ printf "%.2f" $value }} failures. This affects if customers have their balance reset and can therefore start new workspaces.
49+
3950
- alert: GitpodUsageTooLongSinceLastSuccessfulLedgerReconciliation
4051
expr: (time() - gitpod_usage_ledger_last_completed_time{outcome!="success"}) > 60 * 60
4152
for: 30m

0 commit comments

Comments
 (0)