본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)6.3k · #14371

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/agents-cli/blob/main/skills/google-agents-cli-observability/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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_ID to 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. See references/cloud-trace-and-logging.md for details, env vars, and verification commands. If your project isn't scaffolded yet, see /google-agents-cli-scaffold first.

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_content comes 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬