-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[CONTP-1120] Document support for wildcard tag collection to KSM check to Kubernetes Tag Extraction #33142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Preview links (active after the
|
fe2a090 to
8f09692
Compare
| kubernetesResourcesLabelsAsTags: | ||
| pods: | ||
| "*": <PREFIX>_%%label%% | ||
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| "*": <PREFIX>_%%label%% # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
| kubernetesResourcesLabelsAsTags: | ||
| pods: | ||
| "*": <PREFIX>_%%label%% | ||
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| "*": <PREFIX>_%%label%% # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
|
|
||
| ```bash | ||
| DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%label%%"}}' | ||
| DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%label%%"}}' # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%label%%"}}' # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| DD_KUBERNETES_RESOURCES_LABELS_AS_TAGS='{"pods":{"*": "<PREFIX>_%%label%%"}}' # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
| kubernetesResourcesAnnotationsAsTags: | ||
| pods: | ||
| "*": <PREFIX>_%%annotation%% # | ||
| "*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| "*": <PREFIX>_%%annotation%% # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
| kubernetesResourcesAnnotationsAsTags: | ||
| pods: | ||
| "*": <PREFIX>_%%annotation%% | ||
| "*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| "*": <PREFIX>_%%annotation%% # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
| datadog: | ||
| podAnnotationsAsTags: | ||
| "*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM metrics | ||
| "*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "*": <PREFIX>_%%annotation%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| "*": <PREFIX>_%%annotation%% # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
|
|
||
| ```bash | ||
| DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"*":"<PREFIX>_%%annotation%%"}' | ||
| DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"*":"<PREFIX>_%%annotation%%"}' # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"*":"<PREFIX>_%%annotation%%"}' # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| DD_KUBERNETES_POD_ANNOTATIONS_AS_TAGS='{"*":"<PREFIX>_%%annotation%%"}' # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
| global: | ||
| namespaceLabelsAsTags: | ||
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics | ||
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| "*": <PREFIX>_%%label%% # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
| datadog: | ||
| namespaceLabelsAsTags: | ||
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM metrics | ||
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| "*": <PREFIX>_%%label%% # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| "*": <PREFIX>_%%label%% # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
|
|
||
| ```bash | ||
| DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}' | ||
| DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}' # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}' # Note: wildcards do not work for KSM `kubernetes_state.*` metrics prior to agent version 7.73.0 | |
| DD_KUBERNETES_NAMESPACE_LABELS_AS_TAGS='{"*":"<PREFIX>_%%label%%"}' # Note: Wildcards do not work for KSM `kubernetes_state.*` metrics prior to Datadog Agent version 7.73.0 |
What does this PR do? What is the motivation?
KSM metrics supports wildcards in annotations and labels as tags since 7.73.
Merge instructions
Merge readiness:
For Datadog employees:
Your branch name MUST follow the
<name>/<description>convention and include the forward slash (/). Without this format, your pull request will not pass CI, the GitLab pipeline will not run, and you won't get a branch preview. Getting a branch preview makes it easier for us to check any issues with your PR, such as broken links.If your branch doesn't follow this format, rename it or create a new branch and PR.
[6/5/2025] Merge queue has been disabled on the documentation repo. If you have write access to the repo, the PR has been reviewed by a Documentation team member, and all of the required checks have passed, you can use the Squash and Merge button to merge the PR. If you don't have write access, or you need help, reach out in the #documentation channel in Slack.
Additional notes