Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)22k · #10199

agent-platform-alert-configuration

Ce qu’il fait

Il rédige des politiques d'alerte Terraform qui surveillent les métriques OpenTelemetry d'un agent IA, comme la latence et les taux d'erreur. Il s'adresse aux équipes qui exploitent des agents IA instrumentés et veulent être prévenues avant que les problèmes ne grandissent.

Quand l’utiliser

  • ✓Quand vous voulez une alerte lorsque le taux d'erreur ou la latence de votre agent IA augmente.
  • ✓Quand vous voulez suivre l'usage de jetons d'un agent pour que les coûts ne vous surprennent pas.
  • ✓Quand vous voulez des politiques d'alerte écrites en Terraform pour votre projet Google Cloud.

Lien du skill

https://github.com/google/skills/blob/main/skills/cloud/agent-platform-alert-configuration/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/google/skills/blob/main/skills/cloud/agent-platform-alert-configuration/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Écris des alertes Terraform qui m'avertissent si le taux d'erreur ou la latence de mon agent IA devient trop élevé.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Il vérifie d'abord que la télémétrie fonctionne et rassemble les détails de l'agent, puis rédige les fichiers de configuration des alertes. La création de moniteurs ou de ressources nécessite d'abord votre confirmation.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

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 CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="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 (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.
  2. 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

  1. Mandatory Prerequisite Execution Protocol (SEQUENTIAL): Before generating or writing ANY configuration, you MUST execute these steps in order:
    1. Step 1: Streamlined Discovery (Mandatory): Run gather_agent_info.py to 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).
    2. 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_project resources 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?"
    3. Step 3: Pre-existing Policies Verification: Avoid duplicates.
      • Action: Scan the target directory
Questions fréquentes

Crée-t-il des ressources immédiatement ?

Non. La création de moniteurs et de ressources exige votre confirmation explicite, car elle peut générer des frais de facturation.

Quels frais dois-je prévoir ?

La skill signale des coûts supplémentaires pour les moniteurs en ligne, y compris les évaluations LLM, et pour la télémétrie.

Fonctionne-t-il pour une infrastructure non IA ?

Non. Il ne concerne que les agents IA instrumentés avec OpenTelemetry.

Détails

Description originale de l’auteur

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). Q

repo: google/skills

Popularité

Étoiles GitHub
22k
Position au classement
#10199
Licence
Apache-2.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires