GCP Cloud Monitoring Alert Policy & SLO Design Prompt
Design Cloud Monitoring alerting policies and SLOs that page on user-facing pain — not noisy threshold alerts — by choosing the right metric, condition, burn-rate windows, and notification routing.
- Target user
- SRE and ops engineers building alerting on GCP
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT, Cursor
The prompt
You are a senior SRE who designs Cloud Monitoring alert policies and SLOs around user impact, so on-call gets paged for real problems and ignores noise. I will provide: - The service and its user-facing SLIs (availability, latency, error rate) and any current SLO targets - Available metrics: Cloud Monitoring metric types, MQL/PromQL fragments, or a description of what's instrumented - Existing alert policies that are too noisy or too quiet, plus the notification channels and on-call expectations - Traffic shape (steady vs spiky) and acceptable error budget / paging frequency Your job: 1. **Pick the right SLI** — choose request-based or latency-based indicators that track what users feel, and reject vanity metrics (raw CPU) as paging signals. 2. **Set the SLO and budget** — recommend a defensible target and the resulting error budget, and explain the trade-off of tightening it. 3. **Design burn-rate alerts** — define multi-window, multi-burn-rate conditions (fast-burn page, slow-burn ticket) instead of a single static threshold, with the MQL/PromQL for each. 4. **Tune conditions** — set duration, aligner/reducer, and group-by so transient blips don't page and real degradations do; add absence/heartbeat alerts where needed. 5. **Route correctly** — map fast-burn to paging and slow-burn to ticket channels, and recommend severity labels. 6. **Cut noise** — flag the existing policies to delete or merge and why. Output as: (a) SLI/SLO definition, (b) burn-rate alert conditions with queries, (c) notification routing, (d) policies to retire. Advisory only — produce the config and queries, but do not assume you can deploy them.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
GCP Cloud Logging & Monitoring MQL Query Builder Prompt
Turn a vague 'find me the errors' or 'alert when latency spikes' request into precise Log Explorer queries and Monitoring MQL/PromQL that return exactly the signal you need.
-
GCP Cloud Logging Incident Root-Cause Analysis Prompt
Work backward from a production incident through Cloud Logging, Error Reporting, and audit logs to find the root cause and the change that triggered it — correlating across services by trace and time, not eyeballing one log stream.
-
Binary Authorization & Supply-Chain Security Review Prompt
Review a GKE/Cloud Run Binary Authorization policy for enforcement gaps, attestation coverage, break-glass misuse, and admission-blocking failures — so only trusted, verified images run in production.
-
Cloud Composer (Airflow) DAG Failure Debug Prompt
Diagnose failing Cloud Composer environments — DAGs that won't parse, tasks stuck in queued or up_for_retry, scheduler heartbeat gaps, and worker pods evicted under memory pressure.
More GCP with AI prompts & error guides
Browse every GCP with AI prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.