google-agents-cli-observability
하는 일
이 스킬은 배포된 Google ADK 에이전트를 관찰하는 방법을 설명합니다. 추적과 프롬프트 로깅을 포함합니다. 운영 환경에서 에이전트를 실행하고 실제 트래픽을 디버깅해야 하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓배포된 에이전트의 추적이나 로깅을 설정하고 싶을 때.
- ✓운영 중인 에이전트가 특정하게 행동한 이유를 찾아야 할 때.
- ✓에이전트 분석 데이터를 BigQuery나 외부 모니터링 도구로 보내고 싶을 때.
스킬 링크
https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-observability/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“배포된 ADK 에이전트의 추적과 프롬프트 로깅을 설정해서, 운영 환경에서 어떤 답변을 하는지 볼 수 있게 해 주세요.”
매주 새 스킬 5개. 읽는 데 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는 인프라 명령으로 프로비저닝한 리소스가 필요합니다.
이미 에이전트를 배포했다면 어떻게 하나요?
명령형 배포 뒤의 Terraform 적용은 충돌할 수 있다고 경고하며, 스킬은 안전한 선택지를 설명합니다.
상세 정보
작성자의 원본 설명
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
- 업데이트
- 2026. 10. 27.
댓글
- …
이 저장소의 다른 스킬
google-agents-cli-adk-code
6.3k에이전트가 Google ADK로 AI 에이전트 코드를 작성하도록 돕습니다. 도구, 콜백, 상태, 오케스트레이션 패턴을 포함합니다.
google-agents-cli-deploy
6.3k에이전트를 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 서버를 관리하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.