troubleshoot-ssi
БесплатноБез исполняемых скриптовНе проверенDiagnose and fix Single Step Instrumentation (SSI) issues on Kubernetes — SSI automatically instruments applications for APM without code changes. Only use if…
от datadog-labs★ 188 звёзд на GitHubОб этом скилле
Troubleshoot APM SSI on Kubernetes
Triggers
Invoke this skill when the user expresses intent to:
- Debug why a pod is not being instrumented
- Investigate why traces are not appearing in Datadog
- Diagnose admission webhook or init container injection failures
- Follow up on failed checks from
verify-ssi - Report that a specific service or pod has no traces
Do NOT invoke this skill if:
- SSI has not been enabled yet — run
enable-ssifirst
Prerequisites
- kubectl configured to target cluster —
kubectl config current-context
pup-cli: check, install, and authenticate
Claude runs
pup --version
If not found, install it (OS-aware):
Claude runs
brew tap datadog-labs/pack
brew install datadog-labs/pack/pup
pup --version
Without Homebrew, download the binary from the latest Pup release and check its published checksum before placing it on PATH.
Check auth:
pup auth status
If not authenticated:
Claude runs
pup auth login
This opens a browser tab for OAuth. Complete the login there — Claude will continue once the command exits.
If no browser available: export DD_APP_KEY=<your-app-key>.
Context to resolve before acting
| Variable | How to resolve |
|---|---|
AGENT_NAMESPACE |
Namespace where Datadog Agent is installed |
APP_NAMESPACE |
Namespace of the application with missing traces |
CLUSTER_NAME |
kubectl config current-context or spec.global.clusterName in datadog-agent.yaml |
SERVICE_NAME |
tags.datadoghq.com/service label on the Deployment, or ask the user |
ENV |
tags.datadoghq.com/env label on the Deployment, or ask the user |
POD_NAME |
kubectl get pods -n <APP_NAMESPACE> — use the specific pod the user mentioned |
DEPLOYMENT_NAME |
Check metadata.name in the Deployment manifest, or ask the user |
APP_LABEL |
Check spec.selector.matchLabels.app in the Deployment manifest |
How SSI Works — Domain Knowledge
Read this before investigating. It gives you the mental model to reason about novel failures, not just known ones.
Injection chain:
- Admission webhook (registered by Cluster Agent) intercepts pod creation
- Webhook mutates the pod spec — adds a
datadog-lib-<language>-initinit container - Init container downloads the tracer library onto a shared volume
LD_PRELOADenv var is set pointing to the library.sofile- Application process loads the library automatically on startup via
LD_PRELOAD
What each diagnostic layer can see:
- pup — sees what Datadog's backend received. Blind to cluster-side injection failures. If pup shows no tracer telemetry for the service, the tracer was either never injected (cluster-side — confirm with the kubectl init-container check) or injected but unable to report yet (connectivity, DD_SITE, API key, or telemetry lag). Don't assume the cluster; cross-check kubectl.
- kubectl — sees cluster state. Blind to whether data reached Datadog. If kubectl shows the init container but pup shows no traces, the problem is post-injection.
What healthy looks like:
pup fleet tracers listshows the service as active, with the expected languagekubectl get pod -o jsonpath='{.spec.initContainers[*].name}'includesdatadog-lib-<language>-init
Known silent failures — SSI produces no error when these occur:
- Existing ddtrace or OTel instrumentation — SSI detects it and silently disables itself
- Unsupported runtime version — silently skipped
admission.datadoghq.com/enabled: "false"annotation — webhook skips the pod entirely- Pod not restarted after SSI enabled — injection happens at startup; existing pods keep running uninstrumented
- Pod in Agent namespace — SSI never instruments its own namespace
Reasoning shortcuts:
- No init container → webhook didn't fire → check: namespace targeting, pod-selector, opt-out annotation, webhook registration, pod not restarted
- Init container present + no traces → check whether the service is in
pup fleet tracers list: absent → tracer not reporting (Agent connectivity, DD_SITE mismatch, API key, blocked egress; or the tracer never loaded — existing ddtrace/OTel, unsupported runtime); present → reporting telemetry but spans not arriving (no traffic, sampling, ingestion/retention filter)
Step 1: Triage
Run all seven simultaneously and surface them back to the user as the diagnostics you're running. Everything after this is driven by what you find here. Resolve <NODE_HOSTNAME> from kubectl get pod <POD_NAME> -n <APP_NAMESPACE> -o jsonpath='{.spec.nodeName}' once you have a pod name; if no pod context yet, run the pup commands without --hostname first.
Claude runs
pup traces search --query "service:<SERVICE_NAME>" --from 1h --limit 5
pup fleet tracers list --filter "service:<SERVICE_NAME>"
pup apm troubleshooting list --ho
Установить troubleshoot-ssi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл troubleshoot-ssi?
Diagnose and fix Single Step Instrumentation (SSI) issues on Kubernetes — SSI automatically instruments applications for APM without code changes. Only use if the agent and SSI are already configured but traces are missing or instrumentation is not working.
Как установить скилл troubleshoot-ssi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл troubleshoot-ssi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic