Cloud run alert configuration

From google/skills · View interactive version

Cloud run alert configuration is an AI agent skill from the GitHub repository google/skills. Configures best-practice, high-signal alerting policies for Cloud Run resources on Google Cloud (services, jobs, and worker pools) based on seasoned SRE practices. Use when analyzing, recommending, writing, or deploying Terraform PromQL alerting policies to monitor Cloud Run error rates (4xx/5xx), r

How to use this skill

Skill file

Cloud Run Alert Configuration

Production-grade observability for Cloud Run using Terraform and PromQL

(Cloud Monitoring). Grounded in SRE practices, this skill focuses strictly on

actionable user impact and scaling bounds.


Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you

MUST read Usage Attribution. For commands executed

directly in the terminal (never in generated scripts, Terraform, or user code),

prefix gcloud with

CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:cloud-run-alert-configuration)"

and append agent-skills/1.0 (skill:cloud-run-alert-configuration) to User-Agent headers.

CRITICAL RULES

specific reference guide:

the target workload's reference file (SLO targets, latency thresholds,

SLAs, saturation ceilings, rate guards).

notify the user that any default constant can be customized or

overridden via Terraform variables or prompt input.

transient blips and scale-up lag (except immediate job failure alerts

which use duration = "0s").

entirely** (or set to 0s). Cloud Monitoring rejects PromQL queries

with duration set on lookbacks >25h (INVALID_ARGUMENT).

```hcl

user_labels = {

created-with-google-skill = "cloud-run-alert-configuration"

}

```

WORKFLOW STEPS

1. Discovery & Target Identification

2. Configure Alerts

requested alerting policy or standard suite covering availability SLOs (5xx), request

latency (P95/P99), client errors (4xx), container instance saturation,

container CPU/memory utilization, traffic anomalies (drop/surge), and billable

instance time.

execution failure alerts (duration = "0s").

Apply the 4-policy standard suite (Task Success SLO Fast/Slow Burn,

Backlog ETD, Message Age SLA).

3. Terraform Generation & Review

any constant.

thresholds.


Additional Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.