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

Adds an alert for when GCE costs are >50% of montly average #1063

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
21 changes: 21 additions & 0 deletions config/federation/prometheus/alerts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1352,3 +1352,24 @@ groups:
summary: Daily BigQuery costs are 2x the average BigQuery costs for the month.
description: https://github.com/m-lab/ops-tracker/wiki/Alerts-&-Troubleshooting#billing_dailybigqueryincrease
dashboard: https://grafana.mlab-oti.measurementlab.net/d/f4efc343-661f-4899-a00f-a4ffeb294e5d/bigquery-usage?orgId=1&from=now-7d&to=now

# Billing_DailyGCEIncrease fires when the daily Compute Engine costs for any of
# the last 3 days is 50% over the average Compute Engine costs for the last 30
# days. Because the GCP billing export may take over a day to complete, the
# alert checks as far as 2 days back to get an accurate measure of the daily
# costs. That said, even if only with partial data, we opportunistically also
# check today's and yesterday's cost.
- alert: Billing_DailyGCEIncrease
expr: |
bq_billing_today_gce > bq_billing_average_daily_gce * 1.5
OR bq_billing_yesterday_gce > bq_billing_average_daily_gce * 1.5
OR bq_billing_before_yesterday_gce > bq_billing_average_daily_gce * 1.5
for: 10m
labels:
repo: dev-tracker
severity: ticket
cluster: prometheus-federation
annotations:
summary: Daily Compute Engine costs are 50% over the average costs for the month.
description: https://github.com/m-lab/ops-tracker/wiki/Alerts-&-Troubleshooting#billing_dailygceincrease
dashboard: https://grafana.mlab-oti.measurementlab.net/d/a5mC51ZMk/gcp-billing?orgId=1&refresh=5m