/agent-skills:dd-nebius-integrationfrom agent-skills
Connects a Nebius Cloud tenant to Datadog for log collection across Kubernetes, PostgreSQL, Compute, MLflow, and applications. Creates service accounts, registers and verifies the integration.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Estimated time: < 10 minutes
Use scripts/setup.py relative to this file. It owns discovery, deterministic
selection, access checks, credential handling, duplicate prevention,
one-shot registration, verification, and cleanup. Do not reproduce its Nebius
or Datadog reads or writes.
Datadog for Government is not supported. If pup auth status reports a
ddog-gov.com site, stop and tell the user to set up the integration from the
Datadog app instead. The script refuses Government sites too.
Pup. Installed and authenticated. The setup script performs every Datadog
request through pup api, which owns authentication selection, OAuth
refresh, site, and organization selection, and it validates Pup itself before
touching anything:
pup auth status
authenticated: true → continue.pup is missing → ask before installing it:
brew tap datadog-labs/pack && brew install datadog-labs/pack/pup (macOS or
Linux with Homebrew),
curl -fsSL https://raw.githubusercontent.com/DataDog/pup/main/install.sh | sh,
or npm install -g @datadog/pup (Windows or anywhere with npm); see
https://github.com/DataDog/pup. Then run pup auth login.authenticated: false → continue to the Datadog org step below, whose
browser login establishes authentication. Do not ask the user to create or
export Datadog API or application keys.Pup version. The scripts use Pup v2 CLI flags (such as --no-envelope);
Pup 1.x fails with an opaque pup_request_failed. Check:
pup --version
A major version of 2 or later is required. If it is older, ask before
upgrading. When the environment allows it, upgrade with the official
installer or npm as above. Some workspaces block piping a remote script to a
shell (curl | sh), and /usr/local/bin may not be user-writable; there,
install from the release archive in a fresh empty directory instead (replace
2.4.3 and the platform suffix with the latest release):
VERSION=2.4.3
curl -fsSLO "https://github.com/DataDog/pup/releases/download/v${VERSION}/pup_${VERSION}_Linux_x86_64.tar.gz" &&
curl -fsSLO "https://github.com/DataDog/pup/releases/download/v${VERSION}/pup_${VERSION}_checksums.txt" &&
grep "pup_${VERSION}_Linux_x86_64.tar.gz$" "pup_${VERSION}_checksums.txt" | sha256sum -c - &&
tar -xzf "pup_${VERSION}_Linux_x86_64.tar.gz" &&
sudo install -m 0755 ./pup /usr/local/bin/pup &&
pup auth login
Datadog org. Always establish the run's org with a fresh pup auth login
before setup — run it in the background, tell the user to complete the browser
login (this is where they select the org), and wait for it to finish. Do not
ask the user which org to target, and do not infer the org from the stored
session: pup auth status's org (null for the default session) and the
login's "Hinting org UUID" line are stored defaults, not the org the fresh
token will belong to. If the user selected a named Pup organization session,
run setup with the DD_ORG environment variable set to that session's name.
Python and OpenSSL. The scripts need Python 3.9 or later. openssl is used
only to reconcile an ambiguous authorized-key creation; if it is missing, tell
the user that such a failure cannot be reconciled automatically.
python3 -c 'import sys; sys.exit(sys.version_info < (3, 9))' || echo "NEED python3 >= 3.9"
command -v openssl || echo "MISSING openssl"
The Nebius CLI (nebius). Installed and authenticated, with a profile
whose tenant and project the integration will use. Check
command -v nebius; if it is missing, follow the steps below.
Use this when nebius is not installed, or when the script reports
nebius_cli_missing (its details repeat these steps). Nebius documents the
CLI for macOS and Ubuntu; on other systems, point the user to
https://docs.nebius.com/cli/install or to Cloud Shell in the Nebius web console.
Install. Explain that the official installer downloads and runs a remote script, and ask before running it:
curl -sSL https://artifacts.nebius.cloud/cli/install.sh | bash
Reload and verify. The installer updates the shell profile, so restart
the terminal or run exec -l $SHELL, then confirm with nebius version.
If nebius is still not found in the agent's shell, use the path the
installer printed or ask the user to start a new session.
Authenticate. nebius profile create writes local configuration and
opens a browser federation login. Run it on the user's behalf in this
session, supplying the defaults directly as arguments (profile name,
endpoint api.nebius.cloud, federation endpoint auth.nebius.com, and
the tenant and project to integrate); the user only completes the browser
federation login it opens. nebius profile list should then show the new
profile as [default].
Continue with the workflow below.
If profile authentication is missing or expired later, run nebius profile create again on the user's behalf, as above.
Before gathering anything else, ask whether to set up the integration for the
accounts the user is currently logged in to. Read the Datadog org's name from
the same pup session and site this run uses with pup api /api/v2/current_user
(the name of the orgs entry under included; the site is the one pup auth status reported). Read the Nebius tenant from the active profile's tenant (nebius profile current, then nebius iam whoami).
Then ask once with the host's native selector:
Do you want to set up this integration for the Nebius tenant and the Datadog org on ?
nebius profile activate <name> (or create a profile), then ask again.- [ ] 1. Preflight: pup >= 2, fresh `pup auth login` completed (org selected in the browser), python3 >= 3.9, nebius on PATH with a profile
- [ ] 2. Gather log streams and account tags (one form)
- [ ] 3. One approval question
- [ ] 4. Run setup.py; handle the result per "Results"
- [ ] 5. Start verify_logs.py in the background; tell the user
- [ ] 6. Relay succeeded / failed / error
Preflight. Complete Phase 0: Preflight.
Gather. Use one interactive question form to gather any of these values not already supplied by the user:
nebius-cloud-kubernetes,
nebius-cloud-postgresql, nebius-cloud-compute,
nebius-cloud-applications, nebius-cloud-mlflow, and default.key:value tags to add to this account's
data, such as team:infra; no spaces. Leave empty for none.Everything else is fixed and must not be asked about:
datadog-integration (reused when it
already exists in the profile's project, created when it does not)nebius-teal-condor-tenant-f2j),
falling back to the tenant ID when the tenant reports no nametenant_suspended before any writeApprove. Use the interactive question tool once for approval:
Title: Approve complete Nebius integration setup
Question: ask this, with each step on its own line:
May I run the setup script? It will:
- Use your active Nebius CLI profile's tenant and parent project.
- Reuse the uniquely named
datadog-integrationservice account in that project, or create it there.- Make sure it is a member of the tenant's admins group.
- Generate a fresh authorized (private) key and an OBSERVABILITY static key, both expiring in one year.
- Enable the selected log streams, plus resource and service quota collection.
- Register the Datadog integration account under a script-derived name, and verify it.
- Refuse a suspended tenancy.
- Delete the local secrets on success.
Approve option: Approve and run the complete setup
Cancel option: Cancel without making changes
Run. After permission is granted, run this with a generous command timeout, such as 10 minutes, because registration waits for Datadog's answer:
python3 <SKILL_DIR>/scripts/setup.py \
--streams "<COMMA_SEPARATED_STREAM_IDS>"
Append --account-tags <key:value> once per account tag the user supplied.
Pup uses its default session; if the user selected a named Pup organization
session, run the command with the DD_ORG environment variable set to that
session's name.
Do not ask other setup questions or pass other configuration. Running the script is authorization for all setup writes. The script is non-interactive and never displays prompts or menus. Handle its output per Results.
Verify. Start the background log check and tell the user, as in Getting the Most Out of Your Integration.
Relay its succeeded, failed, or error result as described there.
The script prints one JSON object. Report every returned warning to the user.
complete → continue with step 5.already_configured → the tenant's Datadog Nebius account already uses this
service account, the derived display name, the requested streams, tags, and
both collections enabled. Tell the user nothing changed,
and still continue with step 5.tenant_suspended → the tenancy is suspended (state in
error.details.suspension_state); no Nebius or Datadog writes were made.
Do not onboard a suspended tenancy; tell the user to resume it in Nebius
and rerun afterwards.invalid_streams → the selection was empty or named an unsupported stream;
the supported streams are in error.details.supported_streams. Gather the
streams again and rerun.datadog_tenant_already_registered or datadog_account_mismatch → no Nebius
writes were made. Show the name and enabled_services of
error.details.existing_account. The script never updates or replaces a
Datadog Nebius account, so ask the user how to proceed (for example, by
reviewing that account in Datadog's Nebius Cloud integration tile), and do
not rerun the script unchanged.duplicate_datadog_accounts → several Datadog Nebius accounts use this
tenant; show error.details.account_ids and ask the user to resolve them in
Datadog's Nebius Cloud integration tile before rerunning.duplicate_service_accounts → several Nebius service accounts are named
datadog-integration; show error.details.service_account_ids and ask the
user to delete the extra accounts in Nebius before rerunning.nebius_profile_identity_incomplete → run nebius profile create again on
the user's behalf (see
Phase 0) so the profile
selects the tenant and project.pup_cli_missing → follow Pup.pup_cli_outdated → the installed Pup is older than v2 and cannot run this
setup. Ask before upgrading it (see the Pup version preflight above), then
rerun once the upgrade is done.pup_not_authenticated, pup_authentication_failed, or
pup_scopes_missing → ask before running pup auth login, adding the
--extra-scopes that error.details.remediation reports.pup_* reason (a failed request, transport, or response) → relay
message, and rerun once the user has fixed the cause.reason and message, and follow
Security and recovery before any rerun.Stored configuration does not prove ingestion; continue with Getting the Most Out of Your Integration.
After the setup script returns complete or already_configured, confirm that logs are arriving and then show
the user what they can do with them, without blocking the conversation:
Start a background subagent with this task, using the account.name value
from the setup output (the script always derives the name from the tenant's
human-readable Nebius name) and the same DD_ORG setting if setup used one:
Run
python3 <SKILL_DIR>/scripts/verify_logs.py --account-name "<ACCOUNT_NAME>"with a command timeout of at least 8 minutes. It polls Datadog for up to 7 minutes and prints JSON. Do not retry it or change anything. Report back itsstatus(succeeded,failed, orerror),message,sample,links, and anyerrorobject.
Tell the user, in these words:
"Your Nebius integration is set up! I'm now checking in the background that your logs are arriving in Datadog. This can take up to 7 minutes, and I'll let you know as soon as they show up. Feel free to keep working in the meantime."
When the subagent reports, relay the result to the user.
succeeded: celebrate. This is the payoff of the setup, so make it feel like
one. Lead with an upbeat headline such as "Your Nebius logs are now live in
Datadog!" and give links.logs as a clickable link that opens this account's
Nebius logs in the Log Explorer, mentioning the sample source so the user knows
what to look for. Then suggest two or three concrete next steps in a sentence
each, for example:
Keep it short and enthusiastic, and only describe the data the script actually
confirmed. If links is missing, tell the user to search for
source:nebius-cloud* in the Datadog Log Explorer instead.
failed: stay encouraging. No logs arrived within 7 minutes, which is not
necessarily a problem because logs can take longer to start. Suggest checking
source:nebius-cloud* in Datadog later before treating it as broken.
error: report the reason. For datadog_read_not_permitted, ask before
running the reported pup auth login --extra-scopes logs_read_data.
If no subagent tool is available, run the same command yourself and report the result the same way.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub datadog-labs/agent-skills --plugin agent-skills78 skills in this plugin
/agent-observability-auto-experimentRun an iterative code-improvement hill-climb against real Datadog LLM-Obs data, locally, with Claude Code as the agent. Establishes a baseline eval, makes one focused change, re-scores both splits with the same harness, keeps the change when held-out test improves without overfitting val (labeling within-noise gains tentative), and repeats. This is the skill published as "Autoresearch" in Datadog Agent Observability. Use when the user says "run an auto experiment", "run autoresearch", "hill-climb this code", "iteratively improve X and measure the delta", "optimize this code/agent/pipeline/prompt against my traces", "auto-optimize against LLM-Obs", or wants the local equivalent of the auto_experiments worker. Works from an ml_app, a dataset_id, an annotation_queue_id (a queue of human-labelled interactions), a list of trace_ids, or (by exception) a local dataset file. The corpus and its val/test splits live in Datadog LLM-Obs Datasets, created once per run with a timestamp in their names./agent-observability-build-eval-from-annotationsFit a Datadog LLM-Obs evaluator to human labels. Takes an annotation queue, works out where in the trace the labelled property actually lives, drafts an LLM-judge that predicts the human label, scores that judge against the already-labelled rows with a metric agreed with the user, then hill-climbs it — inspect the errors, make one focused change, re-score, keep it only if it beats the best — for a bounded number of iterations, and finally publishes the winner to Datadog as a DISABLED evaluator (not a Datadog draft — a real evaluator with `enabled: false`). Use when the user says "build an eval from my annotations", "build an evaluator from the annotation queue", "turn my annotations into an evaluator", "learn an evaluator from my labels", "fit a judge to the annotation queue", "auto-label", "auto labelling", "automate this annotation queue", "scale up my human labels", or wants the rest of a queue graded the way the humans graded the first rows. Needs an annotation queue with at least two classes present in the human labels (e.g. one true and one false for a boolean).Other plugins' skills for the same job