dd-tags
Skill1 starsChanged 50 days agoMITView on GitHub
Datadog unified service tagging best practices — env/service/version core tags, naming rules, and tag standards across APM traces, logs, and metrics. Use when setting up DD_SERVICE/DD_ENV/DD_VERSION, normalizing tags, or auditing tag coverage.
- Reads credentials
In this repository113 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ac-ideateSkill
- ac-listSkill
- ac-roadmapSkill
- agentbridge-mcpSkill
- almanacSkill
- almquist-shellSkill
- ansible-fleetSkill
- apfsSkill
- apple-siliconSkill
- arena-actorsSkill
- asustor-nasSkill
- a-teamSkill
- atem-miniSkill
- at-tuiSkill
- autoresearchSkill
- babysitSkill
- bonzibuddySkill
- bop-brainstormSkill
- bop-catalogSkill
- bop-onSkill
- bop-teamSkill
- bop-workflowSkill
- bsd-portabilitySkill
- code-refactoringSkill
- codex-personasSkill
- context-graphSkill
- councilSkill
- datadog-backupSkill
- delegateSkill
- deming-pdsaSkill
- deterministic-replaySkill
- dispatch-nuSkill
- durable-commitSkill
- elixir-gastown-opsSkill
- ergo-ircSkill
- esp32-tang-bridgeSkill
- fleet-evalSkill
- fleet-ircSkill
- freebsd-build-vmSkill
- freebsd-piSkill
- freebsdSkill
- ganttSkill
- gastown-opsSkill
- gastown-slingSkill
- gh-authSkill
- gitea-releaseSkill
- gitea-runnerSkill
- henshuSkill
- irclaw-cluster-opsSkill
- irclaw-research-teamSkill
- irc-taskSkill
- jail-factorySkill
- jjSkill
- jobcard-systemSkill
- kubernetesSkill
- leptosSkill
- loreSkill
- lower-bound-reviewSkill
- macvlan-netSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Alphanumeric + underscores: - Use a-z, 0-9, _, -, :, /, .
- Very specific: line 37
Colons for namespacing: - Use : for hierarchical tags (e.g., team:backend)
- Distinctive: line 38
No spaces: - Use underscores or hyphens instead
- Distinctive: line 101
High-cardinality values: - Avoid UUIDs, timestamps, user IDs as tag values
- Distinctive: line 102
Inconsistent naming: - Use same tag names across all services
- Very specific: line 103
Missing core tags: - Always set env, service, version
- Distinctive: line 104
Hardcoded values: - Use environment variables for flexibility
- Distinctive: line 118
Use tag inheritance from infrastructure where possible
- Distinctive: line 119
Avoid creating new tags for each deployment
- Very specific: line 120
Use DD_TAGS for static tags shared across requests
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Datadog Tagging Best Practices
Overview
This skill defines Datadog's official tagging best practices for unified service tagging across all telemetry (APM traces, logs, metrics).
The Three Core Tags (Required)
Datadog reserves three standard tags that automatically connect all telemetry:
| Tag | Environment Variable | Description | Example Values |
env | DD_ENV | Deployment environment | production, staging, development, local |
service | DD_SERVICE | Application/service name | payment-api, user-service, ddtrace-agent-v3 |
version | DD_VERSION | Code version/release | 1.2.3, v2.0.0, 0.3.0 |
Additional Recommended Tags
| Tag | Purpose | Example Values |
team | Ownership/cost allocation | platform, backend, infra |
component | Sub-service component | api, worker, scheduler |
cluster | Kubernetes cluster name | tundra-dome, gastown, minim4-tundra |
namespace | K8s namespace | default, datadog, airflow |
Tag Naming Rules
- Lowercase only - Tags must be lowercase
- Start with letter - Tags must begin with a letter
- Alphanumeric + underscores - Use
a-z,0-9,_,-,:,/,. - Max 200 characters - Tag names limited to 200 chars
- Colons for namespacing - Use
:for hierarchical tags (e.g.,team:backend) - No spaces - Use underscores or hyphens instead
Implementation Patterns
Python Scripts (ddtrace)
#!/usr/bin/env python3
from __future__ import annotations
import os
# Datadog Unified Service Tagging
try:
from ddtrace import config, patch_all, tracer
# Core tags (required)
config.service = os.environ.get("DD_SERVICE", "script-name")
config.env = os.environ.get("DD_ENV", "development")
config.version = os.environ.get("DD_VERSION", "0.1.0")
# Additional tags
tracer.set_tags({
"team": "platform",
"component": "automation",
})
patch_all()
except ImportError:
passEnvironment Variables (Shell/CI)
export DD_ENV=production
export DD_SERVICE=my-service
export DD_VERSION=1.2.3
export DD_TAGS="team:backend,component:api,cluster:tundra-dome"Kubernetes Labels
metadata:
labels:
tags.datadoghq.com/env: "production"
tags.datadoghq.com/service: "my-service"
tags.datadoghq.com/version: "1.2.3"Service Naming Conventions
| Pattern | Example | Use Case |
{app}-{component} | crew-api | Microservices |
{domain}-{function} | payment-processor | Domain-driven |
{script-name} | ddtrace-agent-v3 | Standalone scripts |
{package-name} | tundra-automation | Python packages |
Anti-Patterns to Avoid
- Over-tagging - Each tag adds cost; keep tag cardinality low
- High-cardinality values - Avoid UUIDs, timestamps, user IDs as tag values
- Inconsistent naming - Use same tag names across all services
- Missing core tags - Always set
env,service,version - Hardcoded values - Use environment variables for flexibility
Version Tag Strategies
| Strategy | Format | Example |
| Semantic versioning | MAJOR.MINOR.PATCH | 1.2.3 |
| Git SHA (short) | {sha} | abc1234 |
| Date-based | YYYYMMDD.N | 20260205.1 |
| Branch + SHA | {branch}-{sha} | main-abc1234 |
Cost Optimization
- Limit custom tags to essential ones (team, component, cluster)
- Use tag inheritance from infrastructure where possible
- Avoid creating new tags for each deployment
- Use
DD_TAGSfor static tags shared across requests
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

