Cloud Monitoring Alert Configuration
GoogleOfficialPublished by Google
- Skill
- Workflow
- Cloud and DevOps
- Apache-2.0
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured workflow for defining, reviewing, and managing Cloud Monitoring alerting policies. It leverages Terraform for infrastructure-as-code and PromQL for metric conditions, ensuring consistent observability across Google Cloud resources including Cloud Run, GKE, Compute Engine, and AI Agent platforms. The skill enforces best practices like the Four Golden Signals, dynamic grouping, and proper labeling, while providing clear paths for delegating SLO-specific configurations and notification channel management.
What it does
- Generates parameterized Terraform configurations for Cloud Monitoring alert policies.
- Implements PromQL-based conditions for high-signal monitoring.
- Provides resource-specific guidance for GKE, Cloud Run, Compute Engine, and AI agents.
- Enforces standardized labeling for all generated alerting resources.
- Integrates with specialized scripts to analyze traffic patterns for AI agent telemetry.
- Delegates SLO and notification channel configuration to dedicated skills.
When to use it
- When creating or migrating Terraform-based alerting policies for Google Cloud infrastructure.
- When setting up monitoring for AI agent reliability, quality, and cost telemetry.
- When deduplicating existing alert policies to improve signal-to-noise ratios.
- When configuring alerts for latency, traffic, error rates, or saturation across cloud services.
Advantages
- Ensures consistent observability standards across diverse cloud environments.
- Reduces manual configuration errors through structured Terraform templates.
- Promotes best practices like dynamic grouping and the Four Golden Signals.
- Maintains clear separation of concerns by delegating SLO and notification tasks.
- Provides data-driven traffic analysis for accurate AI agent alert thresholds.
Usage examples
- “Create a Terraform alerting policy for high latency on my GKE service.”
- The agent will guide you through selecting the appropriate GKE PromQL queries, generate the google_monitoring_alert_policy Terraform resource, and prompt you to attach notification channels.
- “Configure a cost alert for my Vertex AI Agent based on token usage.”
- The agent will run the traffic analysis script to determine your workload pattern and generate a PromQL-based alert policy tailored to your agent's historical token consumption.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/google/cloud-monitoring-alert-configuration/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip cloud-monitoring-alert-configuration.zip -d .agents/skills
Documentation by Google
Configure Cloud Monitoring Alerts
Configure high-signal alerting policies in Cloud Monitoring using
Terraform (google_monitoring_alert_policy) and PromQL
(condition_prometheus_query_language).
Usage Attribution
For all gcloud CLI, REST API, and MCP attribution requirements when executing
commands with this skill, follow the instructions in
Usage Attribution.
Enforce Core Alerting Rules
Apply the Four Golden Signals: Cover latency, traffic, errors, and saturation for the target workload.
Use Dynamic Grouping: Aggregate metrics by resource labels and parameterize thresholds with Terraform variables. Never hardcode ephemeral pod or instance identifiers.
Default to PromQL: Use Prometheus Query Language (PromQL) for metric conditions, and use log-based alerts (
condition_matched_logorgoogle_logging_metric) for lifecycle and audit events.Attach Skill Attribution Labels: Always include
user_labelswithcreated-with-google-skill = "cloud-monitoring-alert-configuration"on every generatedgoogle_monitoring_alert_policyresource.Require User Confirmation Before Mutating Resources: Never execute commands that modify infrastructure, enable telemetry, create online monitors, or apply Terraform without waiting for explicit user confirmation.
Prompt for Notification Channels: Alerting policies without notification channels incur charges without notifying anyone during an incident. Whenever notification channels are not specified in the user prompt across any workflow, explicitly inform the user that no notification channels are attached to the alerting policies, advise them to configure and attach notification channels before deploying, and ask at the end of your response if they want to configure notification channels.
Route by Target Resource Type
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.
Configure Cloud Run Alerts
HTTP Services: cloud_run_services.md
Batch Jobs: cloud_run_jobs.md
Worker Pools: cloud_run_worker_pools.md
Configure Google Kubernetes Engine Alerts
PromQL Queries and Golden Signals: GKE PromQL Queries
Metrics Catalog and Open-Source Alerts: GKE Metrics
Prerequisites and Setup: GKE Setup
Configure AI Agent Alerts
Reliability: Reliability
Quality: Quality
Cost: Cost
Safety: Safety
Security: Security
Telemetry Enablement: Telemetry
Traffic Profiles: Historical and No History
Configure Compute Engine and AI Hypercomputer Alerts
Compute Engine VMs, MIGs, GPU XID Insights, Host or Reservation Maintenance (
type=scheduled,unscheduled, ormultiple), and Machine or Domain Health: compute_engine_alerts.md
Configure Generic Resource Alerts
Generic Workloads, Custom Metrics, MQL Migration, and HCL Deduplication: generic_alert_policies.md
Delegate Service Level Objective Alerts
Delegate 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:
State the SLO target and window explicitly if the user gave them, or let the SLO skill apply its SRE defaults (99.9% over a rolling 28 days) if they did not.
Require the returned policies to carry
user_labelswithcreated-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 setcreated-with-google-skill = "google-cloud-slo-alert-configuration"on policies generated through this delegation.Preserve the burn-rate duration contract, which
google-cloud-slo-alert-configurationdoes not specify: Fast Burn (1hand5mwindows, factor14.4) carriesduration = "300s", and Slow Burn ([3d]and[6h]lookback, factor1.0) omits thedurationfield entirely — do not emitduration = "0s"in its place. Cloud Monitoring rejects a non-zero retest buffer when the lookback window exceeds 25 hours.When no notification channels are provided, inform the user that no notification channels are attached to the alerting policies, advise them to configure and attach notification channels, and ask if they want to configure notification channels.
[!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.
Delegate Related Observability Tasks
Notification Channels: Delegate to
cloud-monitoring-notification-channels-configurationto 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.PromQL Authoring: Delegate to
cloud-monitoring-promql-queryfor standalone PromQL query authoring or metric exploration.
Follow the Alert Configuration Workflow
Discover: Identify target resources, metric schemas, and scoping projects using the lookup commands in the matching reference file (such as discover_metric_schema.py for Compute Engine metrics and other Google Cloud resource metrics, or gather_agent_info.py, check_telemetry.py, analyze_traffic.py, create_online_monitor.py, list_trace_scope_table_names.py, and list_log_scope_table_names.py for AI agents).
Route: Load the reference file for the target resource type or delegate SLOs to
google-cloud-slo-alert-configuration.Generate: Produce parameterized Terraform HCL configurations with required
user_labels.Validate: When the loaded reference file requires a validation script (such as lint_promql.py, validate_config.py, lint_syntax.py, or scan_duplicates.py), run or print that exact script command. Do not list or search the
scripts/directory.Explain and Prompt: Explain each alert policy in plain English. When no notification channels are provided, tell the user that no notification channels are attached to the alerting policy, advise them to configure and attach notification channels, and ask if they want to configure notification channels.
Files
- ATTRIBUTION.mdAdded by AutoGineer890 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md11.1 KiB
- references/agent_platform_cost_alert_policies.md9.7 KiB
- references/agent_platform_has_historical_traffic_data.md5.8 KiB
- references/agent_platform_no_historical_traffic_data.md4.1 KiB
- references/agent_platform_quality_alert_policies.md12.8 KiB
- references/agent_platform_reliability_alert_policies.md28.5 KiB
- references/agent_platform_safety_alert_policies.md7.0 KiB
- references/agent_platform_security_alert_policies.md6.8 KiB
- references/agent_platform_telemetry_enablement.md2.6 KiB
- references/attribution.md1.8 KiB
- references/cloud_run_jobs.md5.3 KiB
- references/cloud_run_services.md37.8 KiB
- references/cloud_run_worker_pools.md13.7 KiB
- references/compute_engine_alerts.md40.5 KiB
- references/generic_alert_policies.md18.9 KiB
- references/kubernetes_gke_configuration_prerequisites.md13.3 KiB
- references/kubernetes_metrics_and_alerts_catalog.md22.0 KiB
- references/kubernetes_promql_queries.md18.2 KiB
- scripts/agent_platform/analyze_traffic.pyScript12.8 KiB
- scripts/agent_platform/analyze_traffic_test.pyScript7.8 KiB
- scripts/agent_platform/check_telemetry.pyScript5.8 KiB
- scripts/agent_platform/check_telemetry_test.pyScript5.4 KiB
- scripts/agent_platform/config_utils.pyScript9.4 KiB
- scripts/agent_platform/config_utils_test.pyScript10.2 KiB
- scripts/agent_platform/create_online_monitor.pyScript5.8 KiB
- scripts/agent_platform/create_online_monitor_test.pyScript5.7 KiB
- scripts/agent_platform/gather_agent_info.pyScript14.8 KiB
- scripts/agent_platform/gather_agent_info_test.pyScript11.0 KiB
- scripts/agent_platform/lint_syntax.pyScript1.9 KiB
- scripts/agent_platform/list_log_scope_table_names.pyScript4.7 KiB
- scripts/agent_platform/list_log_scope_table_names_test.pyScript8.6 KiB
- scripts/agent_platform/list_trace_scope_table_names.pyScript4.3 KiB
- scripts/agent_platform/list_trace_scope_table_names_test.pyScript6.4 KiB
- scripts/agent_platform/mock_traffic_data.pyScript100.4 KiB
- scripts/agent_platform/requirements.txt102 B
- scripts/agent_platform/scan_duplicates.pyScript3.7 KiB
- scripts/agent_platform/scan_duplicates_test.pyScript3.9 KiB
- scripts/discover_metric_schema.pyScript13.1 KiB
- scripts/discover_metric_schema_test.pyScript10.4 KiB
- scripts/kubernetes/validate_config.pyScript9.2 KiB
- scripts/lint_promql.pyScript2.5 KiB
scripts/agent_platform/gather_agent_info.py
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Gathers all necessary information about an agent to build alerts.
Usage: python3 gather_agent_info.py --project-id {PROJECT_ID} --agent-name
{AGENT_NAME}
"""
import argparse
import json
import os
import subprocess
import sys
from collections.abc import Sequence
from typing import Any
try:
from google.cloud import aiplatform_v1beta1 # pytype: disable=import-error # pyrefly: ignore[missing-module-attribute,missing-import]
except ImportError:
try:
from google.cloud.aiplatform import aiplatform_v1beta1 # pytype: disable=import-error # pyrefly: ignore[missing-module-attribute,missing-import]
except ImportError:
print("Error: google-cloud-aiplatform is not installed.", file=sys.stderr)
print(
"Please install it: pip install google-cloud-aiplatform",
file=sys.stderr,
)
sys.exit(1)
DEFAULT_VERTEX_REGIONS = ["us-central1", "us-east1", "us-west1", "europe-west1"]
def run_command(
cmd: Sequence[str] | str, shell: bool = False
) -> str | None:
"""Runs a command and returns output, or None if error."""
try:
result = subprocess.run(
cmd, capture_output=True, text=True, check=True, shell=shell
)
return result.stdout.strip()
except subprocess.CalledProcessError as e:
print(
"Warning: Command failed:"
f" {' '.join(cmd) if not isinstance(cmd, str) else cmd}",
file=sys.stderr,
)
print(f"Error output: {e.stderr.strip()}", file=sys.stderr)
return None
except FileNotFoundError as e:
cmd_name = cmd[0] if not isinstance(cmd, str) else cmd.split()[0]
print(f"Warning: Command not found: {cmd_name}", file=sys.stderr)
return None
def find_agent_via_cais(
project_id: str, agent_name: str
) -> dict[str, str] | None:
"""Searches for the agent using Cloud Asset Inventory (CAIS)."""
print("Attempting fast lookup via Cloud Asset Inventory (CAIS)...")
cmd = [
"gcloud",
"asset",
"search-all-resources",
f"--scope=projects/{project_id}",
(
"--asset-types=aiplatform.googleapis.com/ReasoningEngine,"
"run.googleapis.com/Service"
),
f"--query={agent_name}",
"--format=json",
]
output = run_command(cmd)
if not output:
return None
try:
assets = json.loads(output)
for asset in assets:
if asset.get("displayName") == agent_name:
location = asset.get("location", "unknown")
asset_type = asset.get("assetType")
if asset_type == "aiplatform.googleapis.com/ReasoningEngine":
print(f"FOUND via CAIS: Reasoning Engine in {location}")
full_name = asset.get("name", "")
engine_id = full_name.split("/")[-1] if full_name else agent_name
return {
"runtime": "Vertex AI Reasoning Engine",
"id": engine_id,
"display_name": agent_name,
"location": location,
"resource_name": (
full_name.split("//aiplatform.googleapis.com/")[-1]
if "//aiplatform.googleapis.com/" in full_name
else full_name
),
}
elif asset_type == "run.googleapis.com/Service":
print(f"FOUND via CAIS: Cloud Run service in {location}")
return {
"runtime": "Cloud Run",
"id": agent_name,
"display_name": agent_name,
"location": location,
"resource_name": agent_name,
}
except json.JSONDecodeError:
print("Warning: Error parsing CAIS output", file=sys.stderr)
return None
def find_reasoning_engine(
project_id: str, agent_name: str, regions: Sequence[str] | None = None
) -> dict[str, str] | None:
"""Searches for a Reasoning Engine by display name in common regions."""
if not regions:
regions = DEFAULT_VERTEX_REGIONS
print(f"Scanning Vertex AI Reasoning Engines in {regions}...")
for location in regions:
try:
client = aiplatform_v1beta1.ReasoningEngineServiceClient(
client_options={
"api_endpoint": f"{location}-aiplatform.googleapis.com"
}
)
parent = f"projects/{project_id}/locations/{location}"
engines = list(client.list_reasoning_engines(parent=parent))
for engine in engines:
if engine.display_name == agent_name:
print(f"FOUND: Reasoning Engine in {location}")
return {
"runtime": "Vertex AI Reasoning Engine",
"id": engine.name.split("/")[-1],
"display_name": engine.display_name,
"location": location,
"resource_name": engine.name,
}
except Exception as e:
# Might be permission error or API not enabled in this region, continue to
# next
continue
return None
def find_cloud_run_service(
project_id: str, agent_name: str
) -> dict[str, str] | None:
"""Searches for a Cloud Run service by name."""
print("Checking Cloud Run services...")
cmd = [
"gcloud",
"run",
"services",
"list",
f"--project={project_id}",
"--format=json",
]
output = run_command(cmd)
if not output:
return None
try:
services = json.loads(output)
for svc in services:
if svc.get("metadata", {}).get("name") == agent_name:
location = (
svc.get("metadata", {})
.get("labels", {})
.get("cloud.googleapis.com/location", "unknown")
)
print(f"FOUND: Cloud Run service in {location}")
return {
"runtime": "Cloud Run",
"id": agent_name,
"display_name": agent_name,
"location": location,
"resource_name": agent_name,
}
except json.JSONDecodeError:
print("Error parsing Cloud Run services output", file=sys.stderr)
return None
def check_metric_scope(project_id: str) -> str | list[dict[str, Any]]:
"""Checks if the project is part of a multi-project metric scope."""
print("Checking Metric Scope...")
cmd = [
"gcloud",
"beta",
"monitoring",
"metrics-scopes",
"list",
f"projects/{project_id}",
"--format=json",
]
output = run_command(cmd)
if output:
try:
scopes = json.loads(output)
return scopes
except json.JSONDecodeError:
pass
return "Standard Self-Scoped"
def check_bq_datasets(project_id: str) -> list[dict[str, Any]]:
"""Lists linked BQ datasets."""
print("Checking BigQuery Datasets...")
cmd = ["bq", "ls", "--format=prettyjson", f"--project_id={project_id}"]
output = run_command(cmd)
if output:
try:
datasets = json.loads(output)
linked = [d for d in datasets if d.get("type") == "LINKED"]
return linked
except json.JSONDecodeError:
pass
return []
def get_notification_channels(project_id: str) -> list[dict[str, Any]]:
"""Lists notification channels."""
print("Checking Notification Channels...")
cmd = [
"gcloud",
"beta",
"monitoring",
"channels",
"list",
f"--project={project_id}",
"--format=json",
]
output = run_command(cmd)
if output:
try:
return json.loads(output)
except json.JSONDecodeError:
pass
return []
def check_telemetry_status(
project_id: str, location: str, agent_id: str, skill_path: str
) -> str | None:
"""Runs check_telemetry.py script."""
local_dir = os.path.dirname(os.path.abspath(__file__))
check_script = os.path.join(local_dir, "check_telemetry.py")
if not os.path.exists(check_script):
check_script = os.path.join(
skill_path, "scripts", "agent_platform", "check_telemetry.py"
)
if os.path.exists(check_script):
cmd = [
"python3",
check_script,
"--project-id",
project_id,
"--location",
location,
"--agent-resource-name",
agent_id,
]
return run_command(cmd)
print(
f"Warning: check_telemetry.py not found at {check_script}",
file=sys.stderr,
)
return None
def check_online_evaluators(
project_id: str, location: str, agent_resource_name: str
) -> list[dict[str, Any]]:
"""Checks if Online Evaluators exist for the agent."""
try:
client = aiplatform_v1beta1.OnlineEvaluatorServiceClient(
client_options={"api_endpoint": f"{location}-aiplatform.googleapis.com"}
)
parent = f"projects/{project_id}/locations/{location}"
request = aiplatform_v1beta1.ListOnlineEvaluatorsRequest(parent=parent)
page_result = client.list_online_evaluators(request=request)
matching_evaluators = []
for evaluator in page_result:
if evaluator.agent_resource == agent_resource_name:
evaluator_info = {
"name": evaluator.name,
"display_name": evaluator.display_name,
}
if hasattr(evaluator, "metrics"):
evaluator_info["metrics"] = [m.metric for m in evaluator.metrics]
matching_evaluators.append(evaluator_info)
return matching_evaluators
except Exception as e:
print(f"Warning: Error checking Online Evaluators: {e}", file=sys.stderr)
return []
def derive_trace_table(project_id: str, skill_path: str) -> str | None:
"""Runs list_trace_scope_table_names.py script."""
local_dir = os.path.dirname(os.path.abspath(__file__))
list_trace_script = os.path.join(local_dir, "list_trace_scope_table_names.py")
if not os.path.exists(list_trace_script):
list_trace_script = os.path.join(
skill_path,
"scripts",
"agent_platform",
"list_trace_scope_table_names.py",
)
if os.path.exists(list_trace_script):
cmd = ["python3", list_trace_script, "--project_id", project_id]
return run_command(cmd)
print(
"Warning: list_trace_scope_table_names.py not found at"
f" {list_trace_script}",
file=sys.stderr,
)
return None
def derive_log_table(project_id: str, skill_path: str) -> str | None:
"""Runs list_log_scope_table_names.py script."""
local_dir = os.path.dirname(os.path.abspath(__file__))
list_log_script = os.path.join(local_dir, "list_log_scope_table_names.py")
if not os.path.exists(list_log_script):
list_log_script = os.path.join(
skill_path,
"scripts",
"agent_platform",
"list_log_scope_table_names.py",
)
if os.path.exists(list_log_script):
cmd = ["python3", list_log_script, "--project_id", project_id]
return run_command(cmd)
print(
f"Warning: list_log_scope_table_names.py not found at {list_log_script}",
file=sys.stderr,
)
return None
def main():
parser = argparse.ArgumentParser(description="Gather Agent Info for Alerting")
parser.add_argument("--project-id", required=True, help="GCP Project ID")
parser.add_argument(
"--agent-name", required=True, help="Agent Display Name or Service Name"
)
default_skill_path = os.path.dirname(
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
)
parser.add_argument(
"--skill-path",
help="Path to agent-platform-alert-configuration skill",
default=default_skill_path,
)
parser.add_argument(
"--regions",
help=(
"Comma-separated list of regions to scan (e.g., us-central1,us-east1)"
),
default=None,
)
args = parser.parse_args()
project_id = args.project_id
agent_name = args.agent_name
skill_path = args.skill_path
regions = args.regions.split(",") if args.regions else None
print(
f"=== GATHERING INFO FOR AGENT: {agent_name} IN PROJECT: {project_id} ==="
)
# 1. Try to find agent
agent_info = find_agent_via_cais(project_id, agent_name)
if not agent_info:
print(
"Fast lookup failed or returned no results. Falling back to regional"
" polling..."
)
agent_info = find_reasoning_engine(project_id, agent_name, regions)
if not agent_info:
agent_info = find_cloud_run_service(project_id, agent_name)
if not agent_info:
print(
f"\n❌ CRITICAL: Agent '{agent_name}' not found as Reasoning Engine or"
f" Cloud Run service in project '{project_id}'."
)
print("Please verify the name and project.")
sys.exit(1)
print("\n=== AGENT IDENTIFICATION ===")
print(json.dumps(agent_info, indent=2))
# 2. Check Telemetry and Online Evaluators if Vertex AI
if agent_info["runtime"] == "Vertex AI Reasoning Engine":
print("\n=== TELEMETRY STATUS ===")
output = check_telemetry_status(
project_id, agent_info["location"], agent_info["id"], skill_path
)
if output:
print(output)
print("\n=== ONLINE EVALUATORS ===")
evaluators = check_online_evaluators(
project_id, agent_info["location"], agent_info["resource_name"]
)
print(f"Found {len(evaluators)} Online Evaluators for this agent.")
if evaluators:
print(json.dumps(evaluators[:5], indent=2))
if len(evaluators) > 5:
print(f"... and {len(evaluators) - 5} more evaluators.")
# 3. Environment Checks
print("\n=== ENVIRONMENT CHECKS ===")
# Metric Scope
scopes = check_metric_scope(project_id)
print(
"Metric Scope Status:"
f" {scopes if isinstance(scopes, str) else 'Multi-Project'}"
)
if isinstance(scopes, list):
print(json.dumps(scopes[:5], indent=2))
if len(scopes) > 5:
print(f"... and {len(scopes) - 5} more scope projects.")
# BQ Datasets
linked_datasets = check_bq_datasets(project_id)
print(f"Linked BigQuery Datasets: {len(linked_datasets)} found")
if linked_datasets:
print(json.dumps(linked_datasets[:5], indent=2))
if len(linked_datasets) > 5:
print(f"... and {len(linked_datasets) - 5} more datasets.")
# Trace Table Name
print("\n=== TRACE TABLE ===")
output = derive_trace_table(project_id, skill_path)
if output:
print(f"Derived Trace Table(s):\n{output}")
# Log Table Name
print("\n=== LOG TABLE ===")
output = derive_log_table(project_id, skill_path)
if output:
print(f"Derived Log Table(s):\n{output}")
# Notification Channels
channels = get_notification_channels(project_id)
print("\n=== NOTIFICATION CHANNELS ===")
print(f"{len(channels)} found")
if channels:
# Print a summary of types/names
summary = [
{"displayName": c.get("displayName"), "type": c.get("type")}
for c in channels
]
print(json.dumps(summary[:5], indent=2))
if len(channels) > 5:
print(f"... and {len(channels) - 5} more channels.")
print("\n=== SUMMARY COMPLETE ===")
if __name__ == "__main__":
main()
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Python
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Publisher
- Google (Official)
- Source
- google/skills · skills/cloud/cloud-monitoring-alert-configuration · commit 2194d3b
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Google.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download cloud-monitoring-alert-configuration.zip