Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)22k · #10199

agent-platform-alert-configuration

Fungsinya

Skill ini menulis kebijakan peringatan Terraform yang memantau metrik OpenTelemetry agent AI, seperti latensi dan tingkat error. Ditujukan untuk tim yang menjalankan agent AI terinstrumentasi dan ingin diberi tahu sebelum masalah membesar.

Kapan dipakai

  • ✓Saat Anda ingin peringatan ketika tingkat error atau latensi agent AI Anda naik.
  • ✓Ketika Anda ingin memantau pemakaian token sebuah agent agar biaya tidak mengejutkan Anda.
  • ✓Saat Anda ingin kebijakan peringatan ditulis sebagai Terraform untuk proyek Google Cloud Anda.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/google/skills/blob/main/skills/cloud/agent-platform-alert-configuration/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit →

Contoh permintaan ke AI

“Tulis peringatan Terraform yang memberi tahu saya jika tingkat error atau latensi agent AI saya terlalu tinggi.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill lebih dulu memeriksa bahwa telemetri berfungsi dan mengumpulkan detail agent, lalu menulis file konfigurasi peringatan. Membuat monitor atau sumber daya memerlukan konfirmasi Anda terlebih dahulu.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Apakah ia langsung membuat sumber daya?

Tidak. Membuat monitor dan sumber daya memerlukan konfirmasi eksplisit Anda, karena dapat menambah tagihan.

Biaya apa yang harus diperkirakan?

Skill memperingatkan biaya tambahan untuk monitor online, termasuk evaluasi LLM, dan untuk telemetri.

Apakah ia bekerja untuk infrastruktur non-AI?

Tidak. Ia hanya untuk agent AI yang diinstrumentasi dengan OpenTelemetry.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
22k
Peringkat
#10199
Lisensi
Apache-2.0
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa