最新资讯
reddit.com OpenAI 称 Astra 仅满足 10% 安全任务标准 dev.to FreeToken:在自有 GPU 上运行前沿 MoE 模型及其内存需求 dev.to 当 AI Agent 说“完成”时,究竟完成了什么? dev.to 部署 Underdog Bark 3.0 Pro:逐字转写、自定义后端与分块设置 dev.to 为艰难对话构建 AI:五个 Agent、一条安全正则与一位盲评监督者 techcrunch.com Palo Alto Networks 洽谈以 5 亿美元收购 AI Agent 安全初创公司 Clutch theinformation.com 黄仁勋被要求就涉华间谍指控向国会作简报 www.infoq.com Edera 推出 Object Capability Bounded Authority,试图将凭证与 AI Agent 工作负载隔离 wechat 这波杀疯了!旗舰级模型不限量、1个月视频额度免费领 bloomberg.com AI 抛售蔓延至信用市场,软银领跌亚洲美元债 dev.to 如何在专用 GPU 服务器上用 OpenAI 兼容 API 部署 LLM dev.to 审计 153 份 Claude Code 与 Codex 会话记录:User-Agent 与 URL 中的邮箱泄露
多元动态
登录 注册
智能体 skills.sh ·

Google agents-cli 可观测性技能

原文 我的收藏

Google agents-cli 的 observability 技能,用于可观测性,安装量 9,681。

AI推荐理由 可观测性技能对生产环境重要,但摘要信息有限。

60 安装 353 榜单名次 6

正文

google-agents-cli-observability 安装 命令提示符 $ npx skills add https://github.com/google/agents-cli --skill google-agents-cli-observability 摘要 为部署的ADK代理设置跨Cloud Trace、BigQuery和第三方平台的可观测性(追踪、日志记录和监控)。 四个可观测性层级:Cloud Trace(始终启用,分布式追踪)、提示-响应日志记录(GenAI交互到GCS/BigQuery)、BigQuery代理分析(结构化代理事件)以及第三方集成(AgentOps、Phoenix、MLflow、Weave、Freeplay等) 对于Agent Runtime部署,在首次部署前运行agents-cli infra single-project以配置Terraform管理的基础设施(服务账户、GCS存储桶、BigQuery数据集);部署后设置需要手动配置IAM和环境变量 Cloud Trace开箱即用,通过OpenTelemetry跨度跟踪调用流程、LLM调用和工具执行;可通过Cloud Console Trace资源管理器访问 提示-响应日志记录默认保护隐私(仅元数据,通过OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENT);除非设置了LOGS_BUCKET_NAME,否则本地禁用 包含故障排除指南,涵盖缺失追踪、隐私配置错误、BigQuery设置和成本优化策略 SKILL.md 可观测性指南 Cloud Trace开箱即用——无需基础设施。提示-响应日志记录和BigQuery代理分析需要Terraform配置的基础设施(服务账户、GCS存储桶、BigQuery数据集)。运行agents-cli infra single-project --project PROJECT_ID来配置这些资源。有关详细信息、环境变量和验证命令,请参阅references/cloud-trace-and-logging.md。如果您的项目尚未搭建,请先参阅/google-agents-cli-scaffold。 agent_runtime部署的操作顺序 对于deployment_target = agent_runtime,在首次agents-cli deploy之前运行agents-cli infra single-project。Terraform模块拥有整个Reasoning Engine资源(服务账户、部署规范、环境变量),因此在基于SDK的部署之后应用它会导致状态不匹配,Terraform无法在不接管整个资源的情况下进行协调。 已经运行了agents-cli deploy?有两个选项: 切换到Terraform管理——删除SDK部署的Reasoning Engine,然后运行agents-cli infra single-project和agents-cli deploy(会话和进行中的状态将丢失)。 保留SDK部署的实例——跳过infra single-project,并通过重新运行agents-cli deploy --update-env-vars "KEY=VALUE,..."来设置可观测性环境变量;deploy按显示名称匹配现有的Reasoning Engine并就地更新,保留在deploy之外设置的环境变量。您还必须授予其服务账户Terraform模块本应配置的遥测IAM角色:roles/storage.admin(将完成写入日志存储桶)、roles/logging.logWriter、roles/cloudtrace.agent,以及当使用--bq-analytics搭建时的roles/bigquery.dataOwner + roles/bigquery.jobUser。完整集合位于deployment/terraform/single-project/iam.tf(来自app_sa_roles)和telemetry.tf中。在此模式下,Terraform管理的环境变量不可用。 参考文件 显示更多 安装量 155.1K 仓库 google/agents-cli GitHub星标 5.8K 首次出现 2026年4月21日 安全审计 Gen Agent Trust Hub通过 Socket通过 Snyk通过
查看原文(中文正文为 AI 翻译)
google-agents-cli-observability Installation CommandPrompt $ npx skills add https://github.com/google/agents-cli --skill google-agents-cli-observability Summary Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms. Four observability tiers: Cloud Trace (always enabled, distributed tracing), Prompt-Response Logging (GenAI interactions to GCS/BigQuery), BigQuery Agent Analytics (structured agent events), and third-party integrations (AgentOps, Phoenix, MLflow, Weave, Freeplay, and others) For Agent Runtime deployments, run agents-cli infra single-project before first deploy to provision Terraform-managed infrastructure (service account, GCS bucket, BigQuery dataset); post-deployment setup requires manual IAM and env var configuration Cloud Trace works out of the box with OpenTelemetry spans tracking invocation flow, LLM calls, and tool execution; accessible via Cloud Console Trace explorer Prompt-response logging is privacy-preserving by default (metadata only via OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT=NO_CONTENT); disabled locally unless LOGS_BUCKET_NAME is set Includes troubleshooting guide covering missing traces, privacy misconfiguration, BigQuery setup, and cost optimization strategies SKILL.md 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 --project PROJECT_ID to provision these resources. 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. Order of operations for agent_runtime deployments For deployment_target = agent_runtime, run agents-cli infra single-project before the first agents-cli deploy. The Terraform module owns the entire Reasoning Engine resource (service account, deployment spec, env vars), so applying it after an SDK-based deploy creates a state mismatch Terraform can't reconcile without taking ownership of the whole resource. Already ran agents-cli deploy? Two options: Switch to Terraform-managed — delete the SDK-deployed Reasoning Engine, then run agents-cli infra single-project and agents-cli deploy (sessions and in-flight state are lost). 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 Show more Installs 155.1K Repository google/agents-cli GitHub Stars 5.8K First Seen Apr 21, 2026 Security Audits Gen Agent Trust HubPass SocketPass SnykPass

来源报道 · 2 篇 · 以下链接均前往原始媒体

skillssh_trending:skills.sh (trending) Google agents-cli 可观测性技能 09-03 · 原文发布
skillssh_hot:skills.sh (hot) Google agents-cli 可观测性技能 09-03 · 原文发布
← 返回精选动态 原文

更多内容