Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[usage] Alert on Invoice Finalized #13109

Merged
merged 1 commit into from
Sep 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions operations/observability/mixins/meta/rules/usage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ spec:
summary: There are failed Stripe invoice reconciliations.
description: We have accumulated {{ printf "%.2f" $value }} failures. This affects how much customers will be billed.

- alert: GitpodUsageBillingServiceFinalizeInvoiceFailures
expr: sum(increase(grpc_server_handled_total{grpc_service="usage.v1.BillingService", grpc_method="FinalizeInvoice", grpc_code!="OK"})) > 1
for: 30m
labels:
severity: warning
team: webapp
annotations:
runbook_url: https://github.com/gitpod-io/runbooks/blob/main/runbooks/GitpodUsageBillingServiceFinalizeInvoiceFailures.md
summary: Invoice finalization is failing. We are not balancing out user/team usage.
description: We have accumulated {{ printf "%.2f" $value }} failures. This affects if customers have their balance reset and can therefore start new workspaces.

- alert: GitpodUsageTooLongSinceLastSuccessfulLedgerReconciliation
expr: (time() - gitpod_usage_ledger_last_completed_time{outcome!="success"}) > 60 * 60
for: 30m
Expand Down