All skills
google avatar

/agent-platform-alert-configuration

@efcb6f0
by googlegoogle/skills21k stars
1,698

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.

Use this Skill: https://skilld.dev/gh/google/skills/agent-platform-alert-configuration

This session only. Nothing lands on disk.

referencesno_historical_traffic_data.md

≈979 tokens on demand. Your agent reads this file only when SKILL.md points to it.

No Historical Traffic Data Available

Use these instructions if there is no historical metrics data available for the agent (for example, brand new agent):

1. Ask the User for the Metric Pattern and Handle Defaults

  • Because no historical metrics data is available and we do NOT perform pattern inference based on the name, description, or context of the agent, you MUST explicitly ask the user directly in your response what pattern they expect for their agent.
  • Direct Question Format: You MUST write a direct question in your response (for example, "What traffic/usage pattern do you expect for your agent?") and explicitly present the following three options for customization:
    • Steady/Consistent: Maps the alert policy to Short-Window Z-Score Baseline (1-hour lookback).
    • Bursty/Inconsistent: Maps alert policy to Moving Averages (1-hour baseline).
    • Seasonal/Cyclical: Maps alert policy to Seasonal Decomposition (requires offsets 1d and 1w).
  • Inform the user that the default pattern is Steady/Consistent (which maps to Short-Window Z-Score Baseline), and that you will use this default if they do not specify one.
  • Handling Automated or Immediate Setup Requests: If the user's prompt asks you to configure or write the alerting policies immediately (for example, "Set up its alerting policies in 'monitoring/alerts.tf'"), or if you are running in an automated/non-interactive script, you MUST NOT pause to wait for their response. Instead, ask the question in your response, state that you are deploying the default Steady/Consistent pattern because no choice was specified yet, and immediately proceed to generate and write the default configuration (Steady / Consistent -> Short-Window Z-Score).
  • Regardless of the selected pattern, the other policies MUST use their correct data-class defaults:
    • Error Rate: ALWAYS use Multi-Window Multi-Burn Rate SLO Alerting (or ratio-based static limits).
  • Short-Window Z-Score / Moving Averages: Require 1 hour of metric history.

  • SLO Burn Rate (Error Rate): Requires up to 3 days for the slow burn component, though the fast burn component (1h/5m) will work after 1 hour.

  • Seasonal Decomposition: Requires 1 week of history (due to the 1w offset). WARNING: If the user switches to Seasonal Decomposition, warn them that they will have a 1-week blind spot, and suggest starting with Short-Window Z-Score or Static Thresholds as a temporary guard.

2. User Notification

Clearly communicate the lack of historical data, explain the options, and detail the immediate actions taken at the start of your response:

  1. Explain that since the agent has no historical data, you cannot automatically analyze the traffic pattern.
  2. Ask the user directly what traffic pattern they expect (Steady / Consistent, Seasonal / Cyclical, or Bursty / Inconsistent), detailing the mapping differences and the 1-week blind spot risk if they choose Seasonal.
  3. Inform the user that the default is Steady / Consistent (Short-Window Z-Score algorithm for Latency) and you will proceed with this default if they don't have a good idea or do not choose.
  4. If the user accepts the default, explain that you have deployed the Steady/Consistent default to ensure the files are configured immediately, but they can request an update if they prefer another pattern.
  5. Explain the warm-up periods (1 hour for Latency, up to 3 days for SLOs).
  6. Propose the rest of the configuration mapping: Error Rate (SLO Burn Rate).
  7. Provide a brief plain-English explanation of what each of the proposed alerts measures and how the underlying algorithms work and what they actually measure.

Source: SKILL.md on GitHub

No alerts8d3 checks · Risk SAFE
  • Gen Agent Trust Hub8d

    This skill is a well-structured tool for configuring Google Cloud alerting policies for AI agents. It utilizes standard Google Cloud SDKs and CLI tools to discover environment metadata and generate Terraform configurations. The skill incorporates explicit safety tiers, requiring user confirmation for any actions that incur billing or create cloud resources.

  • Socket8d

    No alerts

  • Snyk8d

    Risk: LOW · No issues

Signed by skilld at efcb6f0. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
metadata
{
  "version": "1.0.0",
  "category": "AiAndMachineLearning"
}
All 1 allowed tools
terraform gcloud python

README badge

README badge for google/skills/agent-platform-alert-configuration