/nvidia-doca-plugin:doca-telemetry-exporterfrom NVIDIA DOCA
Guides hands-on DOCA Telemetry Exporter programming: defining schemas, creating sources, choosing publish surfaces (typed/opaque events, metrics, OTLP logs, NetFlow), and debugging DOCA_ERROR_* failures.
Ships in NVIDIA DOCA. 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.
Host checks. Commands here that inspect the user's DOCA host (listing or reading
/opt/mellanox/doca, release files such as/etc/mlnx-releaseor/etc/nvidia/bf-release,/dev/mst) or reach the BlueField (RShim, SSH, BMC) are for that host. Run them yourself only if the user confirms you are on it; otherwise answer from this skill, give the commands for the user to run, and treat values you can't see as unknown.
Follow Loading order below. Open the tasks companion for configure / publish / debug. Open the capabilities companion for publish surfaces. Do not open every companion file.
Where to start: This skill assumes DOCA is already installed and
the user is doing hands-on telemetry-exporter work — emitting
structured application telemetry (counters / events) from a
DOCA-using program to an external consumer. Open
the tasks companion if the user wants to do something (configure
/ build / modify + rebuild / run / test / debug); open
the capabilities companion when the question is what can
the exporter express on this install. If the user has not installed
DOCA yet, route to doca-setup/SKILL.md first.
If the user is confused about whether they want this library or the
DOCA Telemetry Service (the receiver) — read the
exporter-vs-service rule in
the capabilities companion
before configuring anything.
This library is NOT a DOCA Core context. There is no
doca_ctx_start()for the exporter and no per-doca_devinfocapability-query family (itsdoca_capsdump is a stub). The lifecycle isschema_init→ configure exporters → register type(s) →schema_start→source_create→source_start→ report → flush → destroy.
The CLASSES of telemetry-exporter questions this skill is built to answer, each with one worked example. The agent should treat the class as the load-bearing piece — the worked example is a single instance.
doca-telemetry-exporter as the publisher the application links
and route the receiving / consuming side away from this skill.packets_processed event record from my
DOCA Flow application". Answered by the schema → source
lifecycle in
telemetry_export/ sample._metrics_add_counter /
_add_gauge — and the telemetry_export_metrics/ sample), plus
the sample map in ## modify.DOCA_ERROR_BAD_STATE — what did I
get wrong?" — worked example:
"doca_telemetry_exporter_source_report returns BAD_STATE on
the first call". Answered by the BAD_STATE row in
DOCA_ERROR_AGAIN and NO DOCA_ERROR_NOT_FOUND on this API.check_ipc_status steps inCONNECTED and the receiver
is up).doca-version/SKILL.md) plus the honest
introspection rule in
doca_telemetry_exporter_check_ipc_status, not a device
cap-query).This skill serves external developers building applications that
emit structured telemetry through DOCA Telemetry Exporter — i.e.,
users whose application code calls doca_telemetry_exporter_*
(directly in C/C++, or through FFI/bindings from another language)
to publish counters, gauges, and events from their DOCA-using
program to an external telemetry consumer. It is not for NVIDIA
developers contributing to DOCA Telemetry Exporter itself, and it
is not for users building the receiving / aggregating telemetry
service (the DOCA Telemetry Service is a separate DOCA service with
its own public guide, reached via
doca-public-knowledge-map/SKILL.md).
Language scope. DOCA Telemetry Exporter ships as a C library
with pkg-config module name doca-telemetry-exporter. The
shipped samples are written in C. C and C++ consumers are the
canonical case; the worked examples in the tasks companion assume that path.
Other-language consumers (Rust, Go, Python, …) consume the same
*.so through FFI or language-specific bindings; the skill's
contribution in that case is to keep the exporter-vs-service
distinction, the schema → source lifecycle, the transport-not-caps
discovery rule, the same-user-as-the-app permission rule, the
buffered flush-based delivery model, and the error-taxonomy
guidance language-neutral, and to route the agent to the public C
ABI as the authoritative surface that any wrapper will eventually
call.
Load this skill when the user is doing hands-on DOCA Telemetry Exporter work, in any language. Concretely:
doca_telemetry_exporter_schema for the events the
application will emit (field names + field types), and
registering it with the exporter BEFORE any event is published.doca_telemetry_exporter_source instances
to represent distinct logical sources of telemetry inside the
application (e.g. one source per worker thread / per pipeline
stage)._source_report), opaque events (_source_opaque_report), the
Metrics API (counter / gauge / histogram), OTLP logs, or the
NetFlow sibling API — for what the application reports.doca_devinfo cap-query family and NO doca_caps data for
this library): doca_telemetry_exporter_check_ipc_status for
IPC liveness, _source_get_opaque_report_max_data_size for the
opaque payload bound, and the _schema_get_* config getters.DOCA_ERROR_* returned from an exporter call
(BAD_STATE lifecycle-order vs. INVALID_VALUE type/label
mismatch vs. NO_MEMORY vs. INITIALIZATION vs. UNKNOWN
backend) and the per-call status returned to the application.doca_log when stdout / structured-log shipping is enough; a
Prometheus client library when the user needs a non-DOCA-aware
sink; doca-comch/SKILL.md when the user
needs a real-time event subscription back INTO the app — the
exporter is publish-only / one-way).Do not load this skill for general DOCA orientation, install
of DOCA itself, the receiving telemetry service (the DOCA
Telemetry Service has its own public guide reachable through
doca-public-knowledge-map/SKILL.md),
or non-exporter library questions. For those, use
doca-public-knowledge-map/SKILL.md.
This is a thin loader. The body keeps only the orientation needed to pick the right next file. The substantive exporter-specific material lives in two companion files:
doca_telemetry_exporter_schema → _type/_field →
_source with the schema → source lifecycle), the four publish
surfaces (typed events / opaque events / Metrics API / OTLP
logs) plus the NetFlow sibling API, the transport-not-caps
introspection rule (check_ipc_status,
_get_opaque_report_max_data_size, _schema_get_* — NO
doca_caps data, NO device cap-query), the exporter error
taxonomy (mapped onto the cross-library DOCA_ERROR_* set, with
the note that there is NO AGAIN and NO NOT_FOUND on this
surface), the observability surface (per-call status + IPC
status + file-write inspection + the receiver side as the
end-to-end signal), the safety policy that gates the
same-user-as-the-app permission and the receiver-up-first
staging, and the path-selection rule against doca_log and
doca-comch.configure, build, modify (followed by a
rebuild), run, test, debug. Plus a Deferred task verbs block that points
out-of-scope questions at the right next skill.The skill assumes a host where DOCA is already installed at the
standard location, the application runs as a user that can write
to the telemetry transport the exporter is configured for, and a
receiving telemetry consumer is reachable and started before the
exporter. It does not cover installing DOCA — that path goes
through doca-setup/SKILL.md — and it does
not cover configuring / operating the receiving telemetry service,
which is a separate DOCA service with its own public guide.
This skill is agent guidance, not a samples or templates bundle. To keep the boundary clean, it deliberately does not contain — and pull requests should not add:
/opt/mellanox/doca/samples/doca_telemetry_exporter/. The
agent's job is to route the user to those files and prescribe a
minimum-diff modification on them via the universal
modify-a-sample workflow in
doca-programming-guide/SKILL.md,
layered with the exporter-specific overrides in
doca-public-knowledge-map/SKILL.md.
This skill is about the publisher side only.meson.build, CMakeLists.txt,
Cargo.toml, …) parked inside the skill. The agent constructs
the build manifest in the user's project directory against
the user's installed DOCA, where pkg-config --modversion doca-telemetry-exporter is the source of truth.samples/, bindings/, or reference/ subtree of any
kind. A mock or incomplete artifact in this skill's tree, even
one labeled "reference", is misleading: users will read it as
buildable.AGAIN, no NOT_FOUND), observability, the safety
policy, and the path-selection rule against doca_log / comch,
see the capabilities companion.Both companion files cross-link to each other,
doca-version/SKILL.md for the canonical
version-handling rules, and
doca-public-knowledge-map/SKILL.md
whenever the right answer is "look it up in the public docs or
the installed package layout" rather than "exporter-specific
guidance".
doca-public-knowledge-map/SKILL.md —
the routing table for every public DOCA documentation source
and the on-disk layout of an installed DOCA package. The
exporter's public guide URL is
https://docs.nvidia.com/doca/sdk/DOCA-Telemetry-Exporter/index.html;
the on-disk samples live under
/opt/mellanox/doca/samples/doca_telemetry_exporter/. The
DOCA Telemetry Service (the receiver, out of scope here) is
a separate guide reachable through that same routing table.doca-setup/SKILL.md — env preparation,
install verification, transport-side reachability checks, and
the I have no install yet path with the public NGC DOCA
container. This skill assumes its preconditions are satisfied
(in particular, the application user can write to the
telemetry transport).doca-version/SKILL.md — canonical DOCA
version-handling rules. This skill's ## Version compatibility
cross-links the four-way match rule + detection chain and adds
the exporter-specific overlay rules.doca-structured-tools-contract/SKILL.md —
the bundle's structured-tools precedence rule (detect / prefer
/ fall back / report). The Command appendix in
the tasks companion honors this contract.doca-programming-guide/SKILL.md —
general DOCA programming patterns shared by every library: the
canonical pkg-config + meson build pattern, the universal
modify-a-shipped-sample first-app workflow, the universal
lifecycle, the cross-library DOCA_ERROR_* taxonomy, and the
program-side debug order. This skill layers exporter specifics
on top.doca-comch/SKILL.md — the right primitive
when the user needs a real-time event subscription back INTO
the application (host ↔ DPU control-plane messaging). The
exporter is publish-only / one-way; this skill's
path-selection rule routes there when subscription is the
actual requirement.doca-debug/SKILL.md — the cross-cutting
debug ladder (install / version / build / link / runtime /
program / driver). Exporter-specific debug (receiver not up,
lifecycle-order BAD_STATE, type/label INVALID_VALUE,
opaque-path-not-enabled) overlays on top of that ladder.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
53 skills in this plugin
/doca-aes-gcmUse this skill when the user is doing hands-on DOCA AES-GCM work on a BlueField DPU or ConnectX NIC — configuring `doca_aes_gcm_task_encrypt` / `_task_decrypt`, querying `doca_aes_gcm_cap_*` for per-key-type (only `DOCA_AES_GCM_KEY_128` / `_256` — AES-192 not supported) and per-task support, sizing plaintext against the max-buf cap, setting source / destination mmap permissions, validating with a NIST GCMVS or RFC 5288 vector, or debugging DOCA_ERROR_* including the security-critical tag-verification-failed outcome on decrypt. Trigger even when the user does not explicitly mention "DOCA AES-GCM" or "AEAD" — typical implicit phrasings: "decrypt completion IO_FAILED", "auth tag isn't verifying", "NOT_PERMITTED on my encrypt buffer", "is AES-192-GCM on this BlueField" (no), or "encrypted record came back tampered". Refuse and route elsewhere for non-GCM AES modes (CBC / CTR / XTS — CPU OpenSSL), key management (KMS / HSM / rotation), SHA (doca-sha), or general AEAD background.
/doca-argpUse this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring `doca_argp_init` → register params → `doca_argp_start` → `doca_argp_destroy` in order; picking a parameter type from the full public enum (`DOCA_ARGP_TYPE_STRING`, `_INT`, `_BOOLEAN`, `_DEVICE`, `_DEVICE_REP`, `_DOUBLE` — six values, not three); preserving the built-in DOCA flags (`-h` `-v` `-l` `--sdk-log-level` `--log-filter` `-j`/`--json`, NOT `--json-config`); `--device` is per-program; or debugging `DOCA_ERROR_BAD_STATE` / `INVALID_VALUE` / `NOT_SUPPORTED` / `IO_FAILED` from `doca_argp_*`. Trigger on implicit phrasings: "add a custom flag to a DOCA sample", "should I use getopt here", "BAD_STATE registering a new param", "my JSON config key is rejected", or "my sample's --json is ignored". Refuse and route elsewhere for variadic-flag / subcommand / shell-completion features, DOCA Core context, or DOCA Log internals.
/doca-argusUse this skill when the user is deploying or operating the DOCA Argus Service — the packaged BlueField-side runtime-security container that watches the BlueField and attached host for suspicious activity, integrity violations, and operational anomalies, and forwards findings to a SIEM (Splunk / ELK / Sentinel / syslog). Covers the four-axis config (detection policy, forwarding, sampling, host coverage), running the NGC container on BlueField Arm, and wiring the forwarder. Trigger even without "DOCA Argus" by name — typical implicit phrasings: "container green but no findings arrive", "false-positive flood in Splunk", or "runtime security on a fleet of BlueField-3s". Refuse and route elsewhere for installing DOCA, SIEM-side ingest stanzas, pre-baked detection-rule packs, and metrics observability (DOCA Telemetry). Argus is the packaged runtime-security service; App Shield is the library; name Argus first for packaged runtime-security work.
/doca-bare-metal-deploymentRunning a DOCA-linked binary directly on the hardware, with no container or kubelet: on host x86 with a BlueField NIC over PCIe, or bare-metal on BlueField Arm. Use this skill for launching and supervising it (direct, tmux, systemd), and when it "exits 1 right after launch", "systemd keeps restarting it", reports "no matching device on the BF", or the BlueField itself is unhealthy: "bfb-install exited 0 but DPU is dead", "ping 192.168.100.2 works but ssh fails", "host PFs aren't showing netdevs". Refuse service containers under kubelet (doca-container-deployment). Covers PCI/NUMA/CPU/IRQ binding, co-tenant isolation (cgroup-v2/netns/numactl), a seven-layer error taxonomy, platform lifecycle (BFB install, RShim/TMFIFO, host PF rebind, post-BFB recovery) and a six-state BlueField lifecycle classifier. Destructive firmware burn / mlxconfig set requires explicit confirmation via doca-hardware-safety; library APIs, env prep, and build use other skills.
/doca-benchRun `doca_bench` (DOCA 2.7.0 or newer) to measure throughput, bulk latency, precision latency, or maximum bandwidth for RDMA, Compress, AES-GCM, SHA, DMA, EC, Ethernet, Comch, or GPUNetIO on a host or BlueField Arm. Use it to discover enabled benchmark libraries, capture a reproducible command/version/device/environment baseline, compare stable runs against a declared tolerance, or diagnose configuration, device-binding, workload-precondition, and measurement failures. Trigger for requests such as measuring BlueField compression speed, NIC RDMA throughput, crypto latency, or a pre-upgrade baseline. Do not use for application end-to-end timing, custom benchmark code, DOCA installation, or binary patches.
/doca-bf3-deploymentUse this skill for BlueField-3 (BF3) day-1 platform bring-up via the classic RShim/BFB path: pushing a BlueField bundle (BFB) to the DPU over RShim with bfb-install from the host, the host-to-DPU TMFIFO management channel (tmfifo_net0, the 192.168.100.x convention), RShim daemon state and console-over-rshim, DPU mode selection (DPU/embedded-function vs separated-host/NIC mode) via mlxconfig, post-BFB recovery, a six-state BlueField-state classifier, and verifying the install (cat /etc/mlnx-release plus version checks). Trigger even when the user does not say "BF3" — typical phrasings include {push a BFB to my BlueField-3}, {bfb-install exited 0 but the DPU never came back}, {ping 192.168.100.2 works but ssh fails}, or {is DOCA on the host or the Arm side?}. BFB reflash, mlxconfig set, mode changes, and firmware burns are destructive: require explicit target-bound confirmation and load doca-hardware-safety. App launch, container deploy, env install, and the BF4 BMC-Redfish path route elsewhere.
npx claudepluginhub nvidia/skills --plugin nvidia-doca-pluginOther plugins' skills for the same job