google-agents-cli-observability
यह क्या करती है
यह स्किल बताती है कि Google ADK के डिप्लॉय किए गए एजेंट को कैसे देखा जाए, जिसमें ट्रेसिंग और प्रॉम्प्ट लॉगिंग शामिल है। यह उन डेवलपरों के लिए है जो एजेंट प्रोडक्शन में चलाते हैं और असली ट्रैफ़िक को डीबग करना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप डिप्लॉय किए गए एजेंट के लिए ट्रेसिंग या लॉगिंग सेट करना चाहते हैं।
- ✓जब आपको पता लगाना है कि प्रोडक्शन एजेंट किसी खास तरह से क्यों व्यवहार करता है।
- ✓जब आप एजेंट का विश्लेषण BigQuery या किसी थर्ड-पार्टी मॉनिटरिंग टूल को भेजना चाहते हैं।
Skill का लिंक
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-observability/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे डिप्लॉय किए गए ADK एजेंट के लिए ट्रेसिंग और प्रॉम्प्ट लॉगिंग सेट कीजिए, ताकि मैं देख सकूँ कि वह प्रोडक्शन में क्या जवाब देता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल बताती है कि कौन सी मॉनिटरिंग सुविधाएँ अपने-आप काम करती हैं और किन्हें अतिरिक्त क्लाउड संसाधन चाहिए। वह सेटअप के चरण और यह जाँचने के कमांड समझाती है कि लॉग और ट्रेस आ रहे हैं या नहीं।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Observability Guide
Cloud Trace works out of the box — no infrastructure needed. Prompt-response logging and BigQuery Agent Analytics require Terraform-provisioned infrastructure (service account, GCS bucket, BigQuery dataset). Run
agents-cli infra single-project --apply --project PROJECT_IDto provision these resources. Go projects get the BigQuery telemetry stack too; the GCS completion upload behind prompt-response logging and the BigQuery Agent Analytics plugin are Python only. Seereferences/cloud-trace-and-logging.mdfor details, env vars, and verification commands. If your project isn't scaffolded yet, see/google-agents-cli-scaffoldfirst.
Deployment order
| Do you want Terraform-managed observability? | Action |
|---|---|
| No | Run agents-cli deploy directly (works for all targets). |
| Yes | Run agents-cli infra single-project --apply first, then agents-cli deploy. |
If you already ran agents-cli deploy imperatively:
Do not apply Terraform afterward. For Agent Runtime in Gemini platform, Terraform owns the whole engine (service account, deployment spec, env vars), so a later apply can't be reconciled without taking over the resource.
Either delete the deployment and start over, or keep the SDK-deployed instance — skip infra single-project and set the observability env vars by re-running agents-cli deploy --update-env-vars "KEY=VALUE,..."; deploy matches the existing Reasoning Engine by display name and updates it in place, preserving env vars set outside the deploy. You must also grant its service account the telemetry IAM roles the Terraform module would otherwise provision: roles/storage.admin (write completions to the logs bucket), roles/logging.logWriter, roles/cloudtrace.agent, plus roles/bigquery.dataOwner + roles/bigquery.jobUser when scaffolded with --bq-analytics. The full set lives in deployment/terraform/single-project/iam.tf (from app_sa_roles) and telemetry.tf. Terraform-managed env vars aren't available in this mode.
Reference Files
| File | Contents |
|---|---|
references/cloud-trace-and-logging.md |
Scaffolded project details — Terraform-provisioned resources, environment variables, verification commands, enabling/disabling locally |
references/bigquery-agent-analytics.md |
BQ Agent Analytics plugin — enabling, key features, GCS offloading, tool provenance |
references/adk-docs.md |
ADK: adk.dev pages to fetch for detail beyond this skill |
references/feedback-mechanism.md |
Adding a user-feedback endpoint — request model, structured logging, log sink → BigQuery |
Observability Tiers
Choose the right level of observability based on your needs:
| Tier | What It Does | Scope | Default State | Best For |
|---|---|---|---|---|
| Cloud Trace | Distributed tracing — execution flow, latency, errors via OpenTelemetry spans | All templates, all environments | Always enabled | Debugging latency, understanding agent execution flow |
| Prompt-Response Logging | GenAI interactions exported to GCS, BigQuery, and Cloud Logging | Scaffolded ADK Python and Claude projects | Disabled locally, enabled when deployed | Auditing LLM interactions, compliance |
| BigQuery Agent Analytics | Structured agent events (LLM calls, tool use, outcomes) to BigQuery | ADK Python agents with the plugin enabled; Claude template agents | Opt-in (--bq-analytics at scaffold time) |
Conversational analytics, custom dashboards, LLM-as-judge evals |
| Third-Party Integrations | External observability platforms (AgentOps, Phoenix, MLflow, etc.) | Any OpenTelemetry-instrumented agent | Opt-in, per-provider setup | Team collaboration, specialized visualization, prompt management |
Ask the user which tier(s) they need — they can be combined. Cloud Trace is always on; the others are additive.
Cloud Trace
Scaffolded agents use OpenTelemetry to emit distributed traces. Every agent invocation produces spans that track the full execution flow.
Span Hierarchy
ADK projects. These are ADK's span names; other frameworks emit their own (
generate_contentcomes from the shared google-genai instrumentor either way).
invoke_workflow (top-level run)
└── invoke_agent (one per agent in the chain)
├── call_llm (model request)
│ └── generate_content (underlying GenAI model call)
└── execute_tool (tool execution)
अक्सर पूछे जाने वाले सवाल
क्या Cloud Trace को अतिरिक्त सेटअप चाहिए?
विवरण के अनुसार Cloud Trace बिना अतिरिक्त इंफ़्रास्ट्रक्चर के अपने-आप काम करता है।
किसे Terraform से प्रबंधित संसाधन चाहिए?
प्रॉम्प्ट-रिस्पॉन्स लॉगिंग और BigQuery Agent Analytics को इंफ़्रास्ट्रक्चर कमांड से तैयार किए गए संसाधन चाहिए।
अगर एजेंट पहले ही डिप्लॉय हो चुका है तो?
स्किल चेताती है कि imperative डिप्लॉय के बाद Terraform apply टकरा सकता है, इसलिए वह सुरक्षित विकल्प समझाती है।
जानकारी
लेखक का मूल विवरण
This skill should be used when the user wants to "set up tracing", "monitor my agent", "configure logging", "add observability", "debug production traffic", or needs guidance on monitoring deployed agents, including ADK (Agent Development Kit) agents. Covers Cloud Trace, prompt-response logging, BigQuery Agent Analytics, third-party integrations (AgentOps, Phoenix, MLflow, etc.), and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment setup (use google-agents-cli-deploy) or API code patterns (use google-agents-cli-adk-code).
repo: google/agents-cli
लोकप्रियता
- GitHub स्टार
- 6.3k
- रैंकिंग में स्थान
- #14371
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 27/10/2026
कमेंट
- …
इस repository की और skills
google-agents-cli-adk-code
6.3kआपके एजेंट को Google ADK से AI एजेंट का कोड लिखने में मदद करती है, जिसमें टूल, कॉलबैक, स्टेट और ऑर्केस्ट्रेशन पैटर्न शामिल हैं।
google-agents-cli-deploy
6.3kआपके एजेंट को AI एजेंट को Google Cloud पर डिप्लॉय करने में मदद करती है, जिसमें Agent Runtime, Cloud Run, GKE, सीक्रेट, CI/CD और समस्या-निवारण शामिल हैं।
google-agents-cli-eval
6.3kआपके एजेंट को टेस्ट डेटासेट और स्कोरिंग से AI एजेंट का मूल्यांकन करने में मदद करती है, और यह पता लगाती है कि जवाब क्यों विफल होते हैं।
google-agents-cli-publish
6.3kआपके एजेंट को डिप्लॉय किए गए AI एजेंट को Gemini में रजिस्टर करने और Agent Registry में रजिस्टर्ड एजेंट व MCP सर्वर प्रबंधित करने में मदद करती है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।