Skills
Skill 20 of 48
Verify Single Step Instrumentation (SSI) is working end-to-end on Linux hosts — SSI automatically instruments applications for APM without code changes.
2 minutes · 537 words · 18 sections
Install
npx skills add datadog-labs/agent-skills --skill verify-ssinpx skills add datadog-labs/agent-skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
Before doing anything else: Fully resolve all variables in
## Context to resolve before acting. Do not begin Step 1 until every variable has a concrete value.
Invoke this skill when the user expresses intent to:
Do NOT invoke this skill if:
agent-install firstagent-install is completepup --versionIf not found:
brew tap datadog-labs/pack
brew install pupCheck auth:
pup auth status --site <DD_SITE>If not authenticated:
pup auth login --site <DD_SITE>This opens a browser tab for OAuth. Complete the login there — Claude will continue once the command exits.
If valid token — proceed.
ERROR: No browser available: export DD_APP_KEY=<your-app-key>
| Variable | How to resolve |
|---|---|
DD_HOSTNAME | Hostname as Datadog sees it — from sudo datadog-agent status output |
SERVICE_NAME | Expected service name in APM — ask the user |
ENV | Environment tag — ask the user |
DD_SITE | grep "^site:" /etc/datadog-agent/datadog.yaml via SSH, or ask the user |
SSH_KEY | Path to SSH private key |
SSH_USER | SSH username |
SSH_HOST | Hostname or IP of the target host |
Use /proc/<pid>/maps — this is the authoritative check. It shows the actual shared libraries loaded into the running process, which is the only way to confirm the launcher and tracer .so files were actually loaded.
ssh -o StrictHostKeyChecking=no -i <SSH_KEY> <SSH_USER>@<SSH_HOST> \
"pgrep -a -f '<SERVICE_NAME>' | head -5"Use the PID from above:
ssh -o StrictHostKeyChecking=no -i <SSH_KEY> <SSH_USER>@<SSH_HOST> \
"sudo cat /proc/<PID>/maps | grep -E 'launcher|apm-library|datadog'"If the output includes both the launcher (e.g. launcher.preload.so) and a language library (e.g. apm-library-python) — injection succeeded for this process.
ERROR: Launcher present but no language library — launcher ran but couldn’t inject. Check for injection errors:
pup apm troubleshooting list --hostname <DD_HOSTNAME> --timeframe 1hERROR: Neither present — process was not injected. Check /etc/ld.so.preload:
ssh -o StrictHostKeyChecking=no -i <SSH_KEY> <SSH_USER>@<SSH_HOST> "cat /etc/ld.so.preload"If empty — install did not set up the launcher. Re-run the install script with DD_APM_INSTRUMENTATION_ENABLED=host. If non-empty but the process still isn’t injected — the process was started before the launcher was installed. Restart the service and recheck.
ssh -o StrictHostKeyChecking=no -i <SSH_KEY> <SSH_USER>@<SSH_HOST> \
"sudo datadog-agent status 2>&1 | grep -A 15 'APM Agent'"Healthy output shows:
feature_auto_instrumentation_enabled: trueReceiver (previous minute) with > 0 tracesERROR: feature_auto_instrumentation_enabled: false — SSI not active on the agent. Check apm_config in /etc/datadog-agent/datadog.yaml.
ERROR: Receiver (previous minute): 0 — agent running but no traces yet. Generate traffic first (see Step 3), then recheck.
DD_SITE=<DD_SITE> pup apm services list --env <ENV> --from 1hIf <SERVICE_NAME> appears with isTraced: true — traces are reaching the Datadog backend.
Flask / ddtrace v3 naming note: With ddtrace >=3.x, Flask spans are emitted as
service:flaskrather thanservice:<DD_SERVICE>. TheDD_SERVICEvalue appears asbase_serviceon the spans. If you setDD_SERVICE=my-app, search forservice:flaskin the APM UI — the service list will showflask, notmy-app. Check thebase_servicetag to confirm it matches yourDD_SERVICE.
ERROR: Service missing — generate traffic to trigger trace creation:
ssh -o StrictHostKeyChecking=no -i <SSH_KEY> <SSH_USER>@<SSH_HOST> \
"sudo ss -tlnp 2>/dev/null | grep <PID> || sudo netstat -tlnp 2>/dev/null | grep <PID>"Use the port from above:
ssh -o StrictHostKeyChecking=no -i <SSH_KEY> <SSH_USER>@<SSH_HOST> \
"for i in \$(seq 1 10); do curl -s -o /dev/null http://localhost:<PORT>/; done"Wait 30 seconds, then retry:
DD_SITE=<DD_SITE> pup apm services list --env <ENV> --from 10m
DD_SITE=<DD_SITE> pup traces search --query "service:<SERVICE_NAME>" --from 10m --limit 5ERROR: Still missing — check for injection errors and go to troubleshoot-ssi:
pup apm troubleshooting list --hostname <DD_HOSTNAME> --timeframe 1hExit when ALL of the following are true:
/proc/<PID>/maps> 0 traces/minpup apm services listIf any check fails, go to troubleshoot-ssi.
When all steps pass, automatically proceed to onboarding-summary now — do not ask the user for permission.
Verify Single Step Instrumentation (SSI) is working end-to-end on Linux hosts — SSI automatically instruments applications for APM without code changes. Only use after enable-ssi has run.
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
main, last pushed 17 September 2026.SKILL.md, not by matching a directory convention. 11 distinct layouts observed: agent-observability/*/SKILL.md, */SKILL.md, dd-apm/k8s-ssi/*/SKILL.md, dd-apm/linux-ssi/*/SKILL.md, dd-apm/*/SKILL.md, dd-apps/*/SKILL.md, dd-audit/*/SKILL.md, dd-browser-sdk/*/SKILL.md, dd-security/csm/*/SKILL.md, dd-software-delivery/*/SKILL.md, SKILL.md (repo root).h1 and no skipped levels:/datadog-labs/agent-skills.md, and each skill at its own .md URL.