agent-platform-alert-configuration
यह क्या करती है
यह Terraform अलर्ट policies लिखती है जो AI एजेंट के OpenTelemetry मेट्रिक्स, जैसे latency और error rate, पर नज़र रखती हैं। यह उन टीमों के लिए है जो instrumented AI एजेंट चलाती हैं और समस्या बढ़ने से पहले चेतावनी चाहती हैं।
कब इस्तेमाल करें
- ✓जब आप चाहें कि AI एजेंट की error rate या latency बढ़ने पर आपको अलर्ट मिले।
- ✓जब आप एजेंट का token उपयोग देखना चाहें ताकि खर्च अचानक न चौंकाए।
- ✓जब आप अपने Google Cloud प्रोजेक्ट के लिए alert policies Terraform में चाहें।
Skill का लिंक
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-alert-configuration/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Terraform में ऐसे अलर्ट लिखिए जो मुझे चेतावनी दें अगर मेरे AI एजेंट की error rate या latency बहुत ज़्यादा हो।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह पहले जाँचती है कि telemetry काम कर रहा है और एजेंट का विवरण इकट्ठा करती है, फिर अलर्ट कॉन्फ़िगरेशन फ़ाइलें लिखती है। monitors या संसाधन बनाने से पहले आपकी पुष्टि चाहिए।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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:
- 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
- Step 1: Streamlined Discovery (Mandatory): Run
अक्सर पूछे जाने वाले सवाल
क्या यह तुरंत संसाधन बना देती है?
नहीं। monitors और संसाधन बनाने के लिए आपकी साफ़ पुष्टि चाहिए, क्योंकि इससे बिलिंग शुल्क लग सकते हैं।
किन शुल्कों की उम्मीद करूँ?
स्किल ऑनलाइन monitors, जिनमें LLM evaluations शामिल हैं, और telemetry के अतिरिक्त खर्च की चेतावनी देती है।
क्या यह गैर-AI इन्फ़्रास्ट्रक्चर के लिए काम करती है?
नहीं। यह सिर्फ़ OpenTelemetry से instrumented AI एजेंट्स के लिए है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 22k
- रैंकिंग में स्थान
- #10199
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
finding-google-skills
22kआपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।
gcloud
22kयह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।
google-cloud-recipe-auth
22kआपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।
google-cloud-recipe-onboarding
22kएक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।