跳到主内容
智客 ZICQ

技能库 智客分类:Agent 工作流 dd-apm

Dd Apm

APM - 安装,上载,仪器,启用,设置,配置,痕迹,服务,依赖性,性能分析. 用于涉及Datadog APM设置、仪器(SI、ddtrace、代理安装)或分析的任何请求.

1778 安装量

官方网址:skills.sh

技能介绍

先看中文介绍;官方 description 原文单独保留,不改写 SKILL.md。

做什么

APM - 安装,上载,仪器,启用,设置,配置,痕迹,服务,依赖性,性能分析. 用于涉及Datadog APM设置、仪器(SI、ddtrace、代理安装)或分析的任何请求.

何时用

官方 description 未单独写出 Use when。按规范,代理会在用户任务与这段 description 的关键词匹配时激活本技能。

代理如何加载

按 Agent Skills 渐进披露:启动时只加载 name 与 description(约 100 token);任务匹配后才读入整份 SKILL.md 正文;scripts/、references/、assets/ 仅在需要时再读。 本文件正文结构:Datadog APM、Routing — Read This First、Overlap disambiguation、None of the above、Requirements、Command Execution Order (Token-Efficient)。

文件分析

文件分析:除 SKILL.md 外,正文引用了 References/Docs,属于带资源的技能包,这些文件按需再读。

官方 description(原文)

APM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis. Use for any request involving Datadog APM setup, instrumentation (SSI, ddtrace, agent install), or analysis.

Datadog APMRouting — Read This FirstOverlap disambiguationNone of the aboveRequirementsCommand Execution Order (Token-Efficient)Quick StartConfirm env tag with the user first (do not assume production/prod/prd).ServicesList ServicesService StatsService Map

来源分类:skills.sh agent-skill

SKILL.md 与 Agent 调用

官方规范 ↗
name
dd-apm
description
APM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis. Use for any request involving Datadog APM setup, instrumentation (SSI, ddtrace, agent install), or analysis.
  1. 发现技能客户端向 Agent 提供名称与描述目录。
  2. 匹配与调用用户指定或任务匹配后,载入 SKILL.md 指令。
  3. 按需加载按步骤读取参考文档、使用脚本与素材。
指令中引用的文件 · 1
  • References/Docs

以下路径提取自原文;文件是否齐全请以来源仓库中的完整目录为准。

具体调用语法与可用工具以目标 Agent 客户端为准。 查看调用机制说明 ↗

安装这个技能

Skills CLI ↗

先选择目标 Agent 和安装范围,保留技能包的附属文件,安装后检查客户端能否发现该技能。

该技能引用了附属文件,请从来源获取完整目录;仅复制 SKILL.md 可能缺少依赖。

交给 Agent 安装

复制安装指令给支持 Agent Skills 的代理,确认其中的目标目录与客户端匹配。

把 Agent Skill「dd-apm」安装到我的项目:SKILL.md 原文与官方 description 见 https://zicq.com/zh/skills/skl-b678947528d567bb-Dd-%E5%9B%BE%E5%83%8F.html
请存为 .cursor/skills/dd-apm/SKILL.md 或 .claude/skills/dd-apm/SKILL.md,frontmatter 的 name 与 description 保持原样,不要改写。
该技能还带 scripts/、references/、assets/ 等文件,请从 https://github.com/datadog-labs/agent-skills 取完整目录,不要只建一个 SKILL.md。

GitHub 完整包 ↗

终端安装 · Skills CLI

需要 Node.js 与 npx。先查看仓库技能列表,确认实际名称。

npx skills add 'https://github.com/datadog-labs/agent-skills' --list

npx skills add 'https://github.com/datadog-labs/agent-skills' --skill 'dd-apm'

CLI 会交互选择目标 Agent,默认安装到项目;用户级安装使用 -g。先通过查看命令核对仓库内容,再用 npx skills list 检查已安装技能。

阅读排版
--- name: dd-apm description: APM - install, onboard, instrument, enable, set up, configure, traces, services, dependencies, performance analysis. Use for any request involving Datadog APM setup, instrumentation (SSI, ddtrace, agent install), or analysis. alwaysApply: true metadata: version: "1.1.0" author: datadog-labs repository: https://github.com/datadog-labs/agent-skills tags: datadog,apm,tracing,performance,distributed-tracing,dd-apm,install,onboarding,instrumentation,ssi,agent globs: "**/ddtrace*,**/datadog*.yaml,**/*trace*" --- # Datadog APM Distributed tracing, service maps, and performance analysis. ## Routing — Read This First Match the user's request to one of the entries below. Each entry has the same shape: **triggers** → which sub-skill to load → the anti-pattern to avoid. If a request seems to fit more than one entry, see "Overlap disambiguation". If nothing matches, see "None of the above" at the end. --- **Kubernetes APM install / instrument / onboard** — trigger when the user mentions Kubernetes, K8s, EKS, GKE, AKS, kind, minikube, K3s, helm, DatadogAgent CR, kubectl, SSI on a cluster, pod injection, or init containers. **Immediately read** `.claude/skills/dd-apm/k8s-ssi/agent-install/SKILL.md` now, then `.claude/skills/dd-apm/k8s-ssi/enable-ssi/SKILL.md`, then `.claude/skills/dd-apm/k8s-ssi/verify-ssi/SKILL.md` — do not proceed from memory. > **Common wrong approaches that LOOK like they work but silently fail:** > - `helm install datadog datadog/datadog` — the standard chart does NOT support SSI via DatadogAgent CR. > - Adding `ddtrace` imports or `ddtrace-run` to the app — SSI auto-instruments WITHOUT any code changes. > - `admission.datadoghq.com/enabled` annotations — that's admission controller config injection, not SSI init container injection. --- **Linux APM install / instrument / onboard** — trigger when the user mentions a single host, VM, EC2 instance, bare-metal, RHEL/Ubuntu/Debian, systemd, or no orchestrator. **Immediately read** `.claude/skills/dd-apm/linux-ssi/agent-install/SKILL.md` now, then `.claude/skills/dd-apm/linux-ssi/enable-ssi/SKILL.md`, then `.claude/skills/dd-apm/linux-ssi/verify-ssi/SKILL.md` — do not proceed from memory. > **Do NOT** install the agent via plain `apt-get install datadog-agent` (or yum equivalent) and assume SSI follows — host auto-instrumentation requires the install script with the SSI flags, which the sub-skill walks through. --- **Service rename / service remapping** — trigger when the user mentions renaming a service, collapsing multiple service names, stripping suffixes/prefixes, or cleaning up inferred services. **Immediately read** `.claude/skills/dd-apm/service-remapping/SKILL.md` now — do not proceed from memory. > **Do NOT** change `tags.datadoghq.com/service` labels or `DD_SERVICE` env vars to rename a service in Datadog. That requires a rollout and only affects new data. Use a service remapping rule — it rewrites the name at ingestion time with no deployment change. --- ### Overlap disambiguation When a request could plausibly fit more than one entry above, use these tiebreakers: | Hint | Route to | |---|---| | Cluster orchestrator mentioned (EKS/GKE/AKS/kind/K3s/minikube) — even if "just one node" | k8s-ssi | | Single host, VM, or EC2 with no orchestrator | linux-ssi | | "Several services that should be one" | service-remapping — the sub-skill picks the rule type based on whether the duplicates are real instrumented services or inferred entities (DBs, queues, external APIs) | | "My service shows under the wrong name" | First check `DD_SERVICE` on the deploy. If correct and the name is still wrong → service-remapping. | | "Reduce APM volume / cost / noise" | No sub-skill yet. Ask whether the user means sampling (fewer ingested traces) or retention filters (less indexed data) before suggesting commands. | --- ### None of the above If the request doesn't match any entry above, continue reading the trace-search, service analysis, and metrics content below. If even that doesn't fit, **ask the user to clarify** — do not invent a workflow. --- ## Requirements Datadog Labs Pup should be installed. See [Setup Pup](https://github.com/datadog-labs/agent-skills/tree/main?tab=readme-ov-file#setup-pup) if not. ## Command Execution Order (Token-Efficient) For scoped commands, use this order: 1. Check context first (prior outputs, conversation, saved values). 2. If a required value is missing, run a discovery command first. 3. If still ambiguous, ask the user to confirm. 4. Then run the target command. 5. Avoid speculative commands likely to fail. ## Quick Start ```bash pup auth login # Confirm env tag with the user first (do not assume production/prod/prd). pup apm services list --env --from 1h --to now pup traces search --query "service:api-gateway" --from 1h ``` ## Services ### List Services ```bash pup apm services list --env --from 1h --to now pup apm services stats --env --from 1h --to now ``` ### Service Stats ```bash pup apm services stats --env --from 1h --to now ``` ### Service Map ```bash # View dependencies pup apm flow-map --query "service:api-gateway&from=$(($(date +%s)-3600))000&to=$(date +%s)000" --env --limit 10 ``` ## Traces ### Search Traces ```bash # By service pup traces search --query "service:api-gateway" --from 1h # Errors only pup traces search --query "service:api-gateway status:error" --from 1h # Slow traces (>1s) pup traces search --query "service:api-gateway @duration:>1000ms" --from 1h # With specific tag pup traces search --query "service:api-gateway @http.url:/api/users" --from 1h ``` ### Trace Detail ```bash # No direct get command for a single trace ID. # Use traces search with a narrow query and time window. pup traces search --query "trace_id:" --from 1h ``` ## Key Metrics | Metric | What It Measures | |--------|------------------| | `trace.http.request.hits` | Request count | | `trace.http.request.duration` | Latency | | `trace.http.request.errors` | Error count | | `trace.http.request.apdex` | User satisfaction | ## Service Level Objectives Link APM to SLOs: ```bash pup slos create --file slo.json ``` ## Common Queries | Goal | Query | |------|-------| | Slowest endpoints | `avg:trace.http.request.duration{*} by {resource_name}` | | Error rate | `sum:trace.http.request.errors{*} / sum:trace.http.request.hits{*}` | | Throughput | `sum:trace.http.request.hits{*}.as_rate()` | ## Troubleshooting | Problem | Fix | |---------|-----| | No traces | Check ddtrace installed, DD_TRACE_ENABLED=true | | Missing service | Verify DD_SERVICE env var | | Traces not linked | Check trace headers propagated | | High cardinality | Don't tag with user_id/request_id | ## References/Docs - [APM Setup](https://docs.datadoghq.com/tracing/) - [Trace Search](https://docs.datadoghq.com/tracing/trace_explorer/)

相关技能

Agent 工作流

Skill Creator

创造有效技能指南。 当用户想创造出新的技能(或更新现有的技能),以专业知识,工作流程,或工具集成来扩展克洛德的能力时,应该使用这种技能.

Agent 工作流

Clawdhub

使用ClawdHub CLI搜索,安装,更新并发布从taladhub.com的代理技能. 需要获取苍蝇上的新技能时使用,将安装的技能同步到最新版本或特定版本,或者发布 npm-instainddhub CLI 的新/更新的技能文件夹.

Agent 工作流

Agent Team Orchestration

管弦乐团多代理团队,任务设定周期,交接协议,审查工作流程. 使用时间: (1)建立2+特派员队伍,具有不同专业,(2)确定任务路线和生命周期(收录框_ spec_建设_审查_完成),(3)在特派员之间制定交接协议,(4)建立审查和质量关口,(5)管理特派员之间的交流和文物共享.

Agent 工作流

Superpowers

Spec-first,TDD,子代理驱动的软件开发工作流程. 当:(1)构建任何新功能或应用——触发脑暴_计划_子代理执行回路,(2)调试出一个bug或测试失败——触发系统性的根起过程,(3)用户说"让我们构建","帮助我计划","我想添加X",或"这个被打破",(4)完成一个功…