agent-platform-alert-configuration
Configures best-practice alerting policies for AI agents using OpenTelemetry (OTel) metrics, generating output as Terraform (.tf) configuration files
Install / Use
npx skills add google/skills --skill agent-platform-alert-configurationInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
SecuritySupported Platforms
Our assessment of agent-platform-alert-configuration
agent-platform-alert-configuration scores 95/100 on our quality scale, 174th of 544 Security skills we index (top 32%).
Its SKILL.md is 16 KB long, well organised into 13 sections with 1 code example: a thorough specification that gives an agent plenty to work with.
With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 2 days ago, so agent-platform-alert-configuration is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
agent-platform-alert-configuration compared with similar skills
All 4 of these similar skills score higher than agent-platform-alert-configuration; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| agent-platform-alert-configuration (this skill)by google | 95 | 20.3k | 2d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 3d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 3d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 4d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 130.2k | 4d ago | SKILL.md |
Frequently asked questions
- How do I install agent-platform-alert-configuration?
- Run
npx skills add google/skills --skill agent-platform-alert-configuration. The install tabs above show the steps for each supported agent. - Which AI agents does agent-platform-alert-configuration work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is agent-platform-alert-configuration safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is agent-platform-alert-configuration still maintained?
- The repository was last updated 2 days ago, so agent-platform-alert-configuration is actively maintained.
Skill content
View source on GitHubname: agent-platform-alert-configuration metadata: version: "1.0.0" category: AiAndMachineLearning description: >- 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. allowed-tools: terraform gcloud python
Agent Platform Alert Configuration
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:
- Tier R: Read-only (
check_telemetry.py/gather_agent_info.py)- Rule: No confirmation needed. You may execute these scripts immediately to inspect telemetry status or gather agent configuration details.
- Tier B: Billing & Resource Creation (
create_online_monitor.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:
pip install -r scripts/requirements.txt
3. Input Assumptions
- Explicit Project Adherence: You must ONLY configure alerts, query telemetry, or interact with the Google Cloud Project(s) explicitly provided by the user in the prompt. Do NOT assume or use other projects from your environment or history unless the user explicitly directs you to do so.
- Sequential File Transformations: If the user explicitly asks to copy a file and then modify it, you MUST perform these actions sequentially (copy first, then modify) rather than writing the final content directly.
4. Execution Steps
-
Mandatory Prerequisite Execution Protocol (SEQUENTIAL): Before generating or writing ANY configuration, you MUST execute these steps in order:
- Step 1: Streamlined Discovery (Mandatory): Run
gather_agent_info.pyto automatically identify agent runtime, verify telemetry, metric scopes, linked datasets, and more. This script covers most of the manual verifications listed in subsequent steps.- Command:
python3 scripts/gather_agent_info.py --project-id {project_id} --agent-name {agent_name} - Note: If this script fails, returns partial data, or doesn't produce everything you need, you MUST satisfy requirements by running the manual fallback steps listed in Step 2 and then perform Step 3 below. If Step 1 succeeds and provides all info, SKIP to Step 3 (Pre-existing Policies Verification).
- Command:
- Step 2: Metric Scope Verification (Fallback): Run this ONLY if Step
1 failed to determine the metric scope.
- Action A (CLI): Run
gcloud beta monitoring metrics-scopes list projects/{project_id}. If a scoping project is returned, you MUST deploy policies there. - Action B (Code Scan): Search Terraform configurations for
google_monitoring_monitored_projectresources to extract the scoping project. - Action C (Fallback): If ambiguous, ASK the user: "Are you using a multi-project Cloud Monitoring Metric Scope? If so, what is the scoping project ID?"
- Action A (CLI): Run
- Step 3: Pre-existing Policies Verification: Avoid duplicates.
- Action: Scan the target directory to see if aggregated policies
already exist targeting the same metrics (grouped by
reasoning_engine_idorgen_ai_agent_name). Usescan_duplicates.pyto verify.
- Action: Scan the target directory to see if aggregated policies
already exist targeting the same metrics (grouped by
- Step 1: Streamlined Discovery (Mandatory): Run
-
Alert Policy Type Resource Files: You MUST list and read files under
references/with names ending in_alert_policies.mdto learn how to configure alert policies based on type. By default you MUST configure all of the following alert types UNLESS the user requests to generate explicit alert policies and/or types. Follow their tables of content to help you find the reference sections you need to read:Alert Type | Reference File :-------------- | :------------- Reliability | reliability_alert_policies.md Quality | quality_alert_policies.md Cost | cost_alert_policies.md Safety | safety_alert_policies.md Security | security_alert_policies.md
5. Outputs & Formats
-
Always configure the supported alerting policies for the target agent:
- For Reliability Monitoring: You MUST configure exactly five alerting
policies:
- Latency (anomaly monitoring)
- Error Rate - Fast Burn SLO (1-Hour Window)
- Error Rate - Slow Burn SLO (3-Day Window)
- Model Call Error Rate (SQL-based Observability Analytics Alerting)
- Tool Call Error Rate (SQL-based Observability Analytics Alerting)
- For Quality Monitoring: You MUST configure exactly three alerting
policies (Requires Vertex AI Online Monitors):
- Final Response Quality
- Tool Use Quality
- Hallucination
- For Cost Monitoring: You MUST configure exactly one cost alerting
policy:
- Rapid Token Burn Rate (anomaly monitoring)
- For Safety Monitoring: You MUST configure exactly one safety
alerting policy:
- High Model Armor Safety Policy Trigger Rate (SQL-based Observability Analytics Alerting)
- For Security Monitoring: You MUST configure exactly one security
alerting policy:
- High IAM Permission Denied Trigger Rate (SQL-based Observability Analytics Alerting)
- For Reliability Monitoring: You MUST configure exactly five alerting
policies:
-
Terraform Only: Write the generated observability configuration ONLY as Terraform (
.tf) files (such asalerts.tf,variables.tf).- You ONLY need to install Terraform if you're asked to deploy the
alerts AND there is no valid Terraform install. SQL-based alerting using
condition_sqlrequires the provider version >= 6.0.0 (or late 5.x versions supporting the feature). - If you are NOT asked to deploy the alerts you do not need to install terraform.
- You ONLY need to install Terraform if you're asked to deploy the
alerts AND there is no valid Terraform install. SQL-based alerting using
-
Dynamic Multi-Resource Alerting (No Single-Resource Pinning): You MUST NOT hardcode specific agent IDs or resource name filters (for example,
{gen_ai_agent_name="{agent_name}"}ormetric.labels.agent_resource_name="{agent_name}") in alerting conditions unless explicitly requested (for example, "ONLY for this agent"). Merely mentioning a specific agent name or ID in the request does NOT constitute an explicit request to pin/filter; you MUST still default to dynamic grouping to cover all agents. To cover all active agents in the project dynamically:Good Example (PromQL Grouping):
sum(rate(workload_googleapis_com:gen_ai_invoke_agent_duration_count{monitored_resource="generic_node"}[5m])) by (gen_ai_agent_name)Bad Example (PromQL Hardcoded Filter):
sum(rate(workload_googleapis_com:gen_ai_invoke_agent_duration_count{monitored_resource="generic_node", gen_ai_agent_name="support-bot"}[5m]))- For Reliability Metrics using PromQL: ALWAYS use grouping
aggregations. Group by
gen_ai_agent_name(for example,by (gen_ai_agent_name)). Avoid filtering to a single ID/Name unless requested. - For Quality Metrics using Standard Threshold Filters: Omit the
agent_resource_namefilter entirely. Configure the condition filter to only target the monitored resource type (aiplatform.googleapis.com/OnlineEvaluator) and metric type (aiplatform.googleapis.com/online_evaluator/scores) globally for the project.
Good Example (SQL Grouping):
SELECT JSON_VALUE(resource.attributes, '$."cloud.resource_id"') as agent_id, ... FROM ... GROUP BY agent_idBad Example (SQL Hardcoded Filter):
SELECT ... FROM ... WHERE JSON_VALUE(resource.attributes, '$."cloud.resource_id"') = 'support-bot'- For Downstream Calls using SQL: Omit the
ENDS_WITHfilter targeting a specific agent name. Instead, extract the agent identifier (for example,JSON_VALUE(resource.attributes, '$."cloud.resource_id"')) and add it to theGROUP BYclause alongside the model or tool name.
- For Reliability Metrics using PromQL: ALWAYS use grouping
aggregations. Group by
-
Directory Inference: Prefer the path explicitly provided by the user (if any). Otherwise, deploy configuration files to target Terraform or SRE folders (such as
monitoring/,ops/,sre/). Use tools to locate where alert policies or state pointers exist in the project, rather than blindly writing to the root. -
Notification Channels: By default, never configure any notification channels without user input. If the user explicitly provides a notification channel in their prompt, configure the alerts to use it. If no notification channel is provided, you MUST explicitly ask the user in your final response if they would like to configure notification channels. This is a mandatory question and you MUST NOT omit it from your response. IMPORTANT Do NOT make assumptions about notification channels. If you search the codebase for a notification channel you must ALWAYS confirm with the user before using it.
-
Plain English Response: You MUST include a plain English explanation for what the alerts do in your response. This must explain in plain English what the alert measures, how the algorithm works, and what a trigger indicates.
6. Output Verification
- Background Task Cleanup: You MUST verify the status of all background
tasks that you spawn. Before completing your execution and returning your
final response, you MUST terminate or kill any active or hanging background
tasks (using the
manage_tasktool with actionkill). - Validate Configuration: Run the Config Linting tool to make sure all the output files are written with the correct grammar and structure. See details about the tool in the `Toolin
Truncated for display — read the full file on GitHub.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
130.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
