Configures Cloud Monitoring alerting policies using Terraform and PromQL across Cloud Run, Google Kubernetes Engine (GKE), Compute Engine, AI Hypercomputer reservations, Vertex AI Agent Engine, and generic Google Cloud resources. Use when creating, reviewing, migrating, or deduplicating Terraform alerting policies for latency, traffic, error rates, saturation, host or reservation maintenance, GPU XID insights, or AI agent telemetry. Don't use for standalone PromQL query authoring without alerting, log querying, or billing cost audits.
Written by Google and published in google/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
Configure high-signal alerting policies in Cloud Monitoring using
Terraform (google_monitoring_alert_policy) and PromQL
(condition_prometheus_query_language).
For all gcloud CLI, REST API, and MCP attribution requirements when executing
commands with this skill, follow the instructions in
Usage Attribution.
condition_matched_log or google_logging_metric) for lifecycle and
audit events.user_labels with
created-with-google-skill = "cloud-monitoring-alert-configuration" on
every generated google_monitoring_alert_policy resource.Identify the target resource type and read only the matching reference file
directly. Never run directory listings or workspace file searches to look for
queries or .tf files unless the prompt
explicitly provides a file path. If a user asks to fix or validate a PromQL
query without providing the query text or a file path, construct a
representative broken-and-corrected query example directly.
type=scheduled, unscheduled, or multiple), and Machine
or Domain Health:
compute_engine_alerts.mdDelegate to the google-cloud-slo-alert-configuration skill. That skill
owns the SLO setup wizard, the burn-rate PromQL templates
(references/promql_templates.md), the SLI metric mapping
(references/service_metrics.md), and the App Hub scoping labels
(references/app_hub_labels.md). Do NOT duplicate those templates here or
claim that this skill owns its own SLO PromQL template library.
Delegate whenever the user asks for an availability or latency SLO, an error budget or burn-rate alert, or a Service Level Objective on any resource. When SLOs are only one part of a broader request (for example, a full production alerting suite for a Cloud Run service), delegate the SLO policies and continue generating the remaining golden-signal policies from the resource-specific reference in the same response.
Every resource reference carries a Context to hand off list naming the SLI
metric, its good or bad filter, and the grouping labels — under a ## Delegate Service Level Objective Alerts heading for Cloud Run and generic resources, and
inside the SLO section itself for GKE and Agent Platform. Read it and pass that
context on, so the SLO skill does not repeat discovery you have already done.
When delegating, you MUST also:
user_labels with
created-with-google-skill = "cloud-monitoring-alert-configuration" so
attribution stays consistent with the rest of the generated suite. This
literal value does NOT change when you delegate: the label records the
entry-point skill, not whichever skill supplied the template. Do NOT
set created-with-google-skill = "google-cloud-slo-alert-configuration" on
policies generated through this delegation.google-cloud-slo-alert-configuration does not specify: Fast Burn (1h and
5m windows, factor 14.4) carries duration = "300s", and Slow Burn
([3d] and [6h] lookback, factor 1.0) omits the duration field
entirely — do not emit duration = "0s" in its place. Cloud Monitoring
rejects a non-zero retest buffer when the lookback window exceeds 25 hours.[!IMPORTANT] Always tell the user about the referral, even on the fallback path. Some reference files in this skill include standalone burn-rate templates to use when the
google-cloud-slo-alert-configurationskill is not installed. If you emit policies from those fallback templates, your response MUST still tell the user thatgoogle-cloud-slo-alert-configurationowns SLO configuration, state that the emitted policies use the local fallback templates, and list the handoff context. Never silently present SLO policies as if this skill owned them.
[!NOTE] Exception: Agent Platform (OpenTelemetry-instrumented AI agents on any runtime, including Vertex AI Agent Engine and Cloud Run) is the one resource whose Fast and Slow burn policies live in this skill and remain authoritative. Delegate only for SLO customization — see Reliability.
cloud-monitoring-notification-channels-configuration to configure email,
PagerDuty, Pub/Sub, or Slack channels. When an alerting policy has no
notification channels attached, inform the user that no notification
channels are attached and that they should configure notification channels
and attach them to the alerting policy.cloud-monitoring-promql-query for
standalone PromQL query authoring or metric exploration.google-cloud-slo-alert-configuration.user_labels.scripts/
directory.Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /cloud-monitoring-alert-configuration in Claude Code or $cloud-monitoring-alert-configuration in Codex.
The description says when to use it:
Use when creating, reviewing, migrating, or deduplicating Terraform alerting policies for latency, traffic, error rates, saturation, host or reservation maintenance, GPU XID insights, or AI agent telemetry.
Copy the cloud-monitoring-alert-configuration folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .claude/skills
cp -r /tmp/google-skills/skills/cloud/cloud-monitoring-alert-configuration .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if cloud-monitoring-alert-configuration does not appear.
git clone --depth 1 https://github.com/google/skills.git /tmp/google-skills
mkdir -p .agents/skills
cp -r /tmp/google-skills/skills/cloud/cloud-monitoring-alert-configuration .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for cloud-monitoring-alert-configuration and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
cloud-monitoring-alert-configuration ships 41 files, 517.3 KB in total. Select a file to load it from GitHub.