Add a new section to the agent status output (agent status command)
62
55%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.claude/skills/create-status-provider/SKILL.mdAdd a new status provider to the Datadog Agent. Status providers contribute sections to the agent status output in JSON, plain text, and HTML formats.
Use AskUserQuestion to collect the following. If $ARGUMENTS provides the provider name, skip that question.
"DogStatsD", "Forwarder")."collector" always appears first.Provides struct (most common) or standalone module?Before writing any code, read the appropriate reference files to follow existing patterns:
| What | Reference file |
|---|---|
| Provider interface | comp/core/status/component.go |
| Provider implementation + templates | comp/dogstatsd/status/statusimpl/status.go and its status_templates/ directory |
| Registration in component Provides | comp/trace/status/statusimpl/status.go |
| Template helpers (humanize, etc.) | comp/core/status/render_helpers.go |
Create the provider implementation following the reference. Also create the status_templates/<name>.tmpl and status_templates/<name>HTML.tmpl files following the templates in the reference's status_templates/ directory.
To make a provider conditional, return nil from the constructor when the feature is disabled.
Register using status.NewInformationProvider(yourProvider{...}) — either in an existing component's Provides struct (most common) or as a standalone Module(). The reference files show both patterns.
dda inv agent.build --build-exclude=systemddda inv linter.gostatus_templates and embedded via //go:embed status_templates."myFeatureStats") to namespace data in the shared stats map.HeaderProvider (rarely needed), use NewHeaderInformationProvider() instead./create-status-provider — Interactive: prompts for all details/create-status-provider "My Feature" — Pre-fills the provider name0f36ad4
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.