Agent skill · data analytics · google
agent-platform-alert-configuration
Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files. Use when analyzing, writing, or deploying alerting policies to monitor agent latency, error rates, token usage, and quality metrics. Don't use for standard infrastructure monitoring unrelated to AI agents, or when the agent is not instrumented with OpenTelemetry (for Reliability, Cost, Safety, Security alerts). NOTE: Reliability, Cost, Safety, and Security alerts use generic OTel metrics and work across runtimes (such as Cloud Run, Vertex AI). Quality alerts rely on Vertex AI Online Monitors and are strictly bound to Vertex AI deployments.
Why this skill is useful
Adds specific alerting policies and Python scripts for configuring OpenTelemetry metrics that the AI wouldn't reliably generate on its own.
What it needs
Requires python installed locally. Requires gcloud account access. About 8k tokens when loaded. Last updated 2026-08-06. 15,831 stars on the source repository.
What this skill does
Agent Platform Alert Configuration 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 CLOUDSDKMETRICSREQUESTATTRIBUTION="agent-skills/1.0 (skill:agent-platform-alert-configuration)" and append agent-skills/1.0 (skill:agent-platform-alert-configuration) to User-Agent headers. Critical Steps 1. Safety & Confirmation Tiers (CRITICAL) Before executing any commands or writing configurations on behalf of the user, you MUST adhere to the following safety tiers based on the action requested: 1. Tier R: Read-only (checktelemetry.py / gatheragentinfo.py) Rule: No confirmation needed. You may execute these scripts immediately to inspect telemetry status or gather agent configuration details. 2. Tier B: Billing & Resource Creation (createonlinemonitor.py / provisioning) Rule: Explicit User Confirmation Required. These actions incur additional billing charges and create cloud resources. The agent MUST ALWAYS warn the user explicitly about the potential extra billing costs of BOTH the Online Monitor (specifically mentioning LLM evaluations) and Telemetry (specifically mentioning Cloud Trace/Cloud Logging export). You MUST STOP and ask for explicit approval before proceeding with provisioning or providing setup commands. 2. Prerequisites & Dependencies Agent Telemetry Disclaimer: For Reliability, Cost, Safety, and Security alerts to function, the underlying agent MUST be instrumented to emit OpenTelemetry (OTel) metrics. If the agent does not emit these metrics, the alerting policies will have no data stream to evaluate. Python Environment Before executing any python script in this skill you MUST install the required dependencies in your environment. Run this command first: 3. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills google/agent-platform-alert-configuration