Command Palette

Search for a command to run...

Back to skills
skill № 92311

dd-coreweave-agent-fleet-installation-on-clusters

Install the Datadog Agent on the CoreWeave Kubernetes (CKS) clusters of a tenancy that is already connected to Datadog, so container monitoring and APM…

FreeRuns bundled scripts
datadog-labsby datadog-labs★ 188 GitHub stars

Install dd-coreweave-agent-fleet-installation-on-clusters in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Datadog Agent Fleet Installation on CoreWeave CKS Clusters

Datadog installs and manages the Agent on the tenancy's CoreWeave Kubernetes (CKS) clusters: the Datadog Operator in a datadog-managed namespace deploys the Agent on every Linux node and the Cluster Agent, keeps them current, and covers clusters that start matching the rule later. Nothing is installed until a rule exists, and clusters that already run a Datadog installation are reported, never changed.

The skill stops at rule creation. Once the rule exists, Datadog's own server-side Operator rollout takes over. The skill does not wait for the rollout, poll it to completion, push any configuration, or verify telemetry.

Scope. Container monitoring and APM are enabled by default on an installed Agent. Private API endpoints are not supported (clusters are public unless CoreWeave Support makes them private). Do not enable other Datadog features (log collection, CWS, SBOM, profiling) unless the user explicitly asks.

Phase 0: Preflight

These prerequisites must be in place before any setup step runs.

Datadog credentials and org — locked in before anything else. Every later step (integration detection, rule lookup, rule write) is org-scoped, and a wrong org yields a confidently wrong answer instead of an error. Nothing else in this skill runs — not even read-only discovery — until the Datadog org and site are locked:

  1. Source <SKILL_DIR>/scripts/dd-env.sh in the same shell as every script invocation: it loads DD_SITE / DD_API_KEY / DD_APP_KEY from the environment (exported values win) falling back to .env.local / .env, defaults DD_SITE to datadoghq.com, and prints the resolved state — set/unset only, never key values.
  2. Both keys set → the script validates the pair and resolves its org at preflight (datadog_session.env_keys in the output, with env_keys_wrong_site / env_keys_wrong_org / env_keys_org_unresolved warnings when the pair cannot work for a keyed write on this session). Confirm the org with the user once.
  3. Either key missing → run the dd-account-setup skill first and come back: it locks in the org and provisions the keys through a Pup login or a hand-rolled PKCE flow. Do not modify dd-account-setup for this, and reuse the API key it provisions as the Agents' API key below (the key the installed Agents use).

The CoreWeave CLI (cwic). Installed and logged in, with a session for the same CoreWeave organization the Datadog integration account holds. Check command -v cwic; if it is missing, point the user to the cwic README (https://github.com/coreweave/cwic) for the install steps for their platform. Have the user run cwic auth login themselves (it opens a browser; the token page is https://console.coreweave.com/tokens) and verify with cwic auth whoami. Never ask the user to paste a CoreWeave token into chat.

Pup. Skip this when Pup is not installed — with DD_API_KEY and DD_APP_KEY both exported, the pair authenticates the rule write on its own (the script checks its site and org at preflight). Otherwise, check the session on the site dd-env.sh resolved:

command -v pup >/dev/null 2>&1 && DD_SITE="${DD_SITE:-datadoghq.com}" pup auth status

The only scope this flow asks for beyond Pup's normal set is agent_install_write, which lets rule writes ride the session token. If the script reports a scope error (pup_scopes_missing or pup_scopes_missing_for_key_minting), ask before running the login command in the error's remediation — it names the exact scopes, and --extra-scopes adds to Pup's normal set (never --scopes, which replaces it). Run every Pup login on the resolved site (DD_SITE='<site>' pup auth login ...): a login on Pup's default site locks the token into the wrong org.

Python 3, for the scripts:

command -v python3 || echo "MISSING python3"

Detect the existing integration before offering to create one. The tenancy is an existing CoreWeave Cloud integration, and the script enforces the ordering — no reliance on the agent: the tenancy is identified and org-paired (accounts → telemetry cluster_org / account_display_name → cwic session's org) before required access, rules, or clusters are read. An existing account whose org matches is the tenancy to use; only when the right org holds no matching account does the dd-coreweave-integration skill follow — never create a second integration for the same CoreWeave org, because rules and install state would strand across two accounts. The account's access token must carry the CKS Admin role — CoreWeave API tokens inherit the roles of the user who created them, so that user needs CKS Admin, because Datadog needs cluster-admin access to install the Operator. Every discovery and install result carries datadog_session (site, org, env_keys) so a wrong-org run is visible immediately.

With the prerequisites in place, run the read-o

Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • scripts/_common.py
  • scripts/_coreweave.py
  • scripts/_datadog.py
  • scripts/dd-env.sh
  • scripts/setup.py

FAQ

What does the dd-coreweave-agent-fleet-installation-on-clusters skill do?

Install the Datadog Agent on the CoreWeave Kubernetes (CKS) clusters of a tenancy that is already connected to Datadog, so container monitoring and APM telemetry flow into Datadog without connecting to each cluster or running Helm yourself. Discovers the tenant's integrated account and its CKS clusters, asks which clusters to cover, and creates the Datadog install rule that makes Datadog install and manage the Agent fleet. Datadog rolls the Operator out from there; the skill stops at rule creation. The feature is in preview. Use when the user wants Datadog monitoring on their CoreWeave clusters, wants to install the Datadog Agent fleet on CoreWeave, or wants container or APM telemetry from CoreWeave CKS clusters.

How do I install the dd-coreweave-agent-fleet-installation-on-clusters skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the dd-coreweave-agent-fleet-installation-on-clusters skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare dd-coreweave-agent-fleet-installation-on-clusters with