Skip to content

Commit 91c40c7

Browse files
easyCZroboquat
authored andcommitted
[usage] Alert on Stripe webhook handling
1 parent 7406ac1 commit 91c40c7

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
@@ -57,3 +57,14 @@ spec:
5757
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodUsageTooLongSinceLastSuccessfulLedgerReconciliation.md
5858
summary: Usage reconciliation has not run successfully for {{ printf "%.2f" $value }} seconds. Usage data is stale.
5959
description: We have not executed scheduled usage reconciliation for {{ printf "%.2f" $value }} seconds. We expect the data to update every 15 minutes to avoid stale usage records and stale invoices.
60+
61+
- alert: GitpodUsageStripeWebhookFailures
62+
expr: sum(increase(gitpod_http_request_duration_seconds_count{handler="/stripe/invoices/webhook", code=~"5.*"})) > 0
63+
for: 30m
64+
labels:
65+
severity: warning
66+
team: webapp
67+
annotations:
68+
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodUsageStripeWebhookFailures.md
69+
summary: Detected {{ printf "%.2f" $value }} errors handling Stripe webhook.
70+
description: Stripe is sending us webhooks but we are failing to handle them. Inconsistent usage data very likely.

0 commit comments

Comments
 (0)