Skip to content

Conversation

@zhuminyi
Copy link
Contributor

@zhuminyi zhuminyi commented Apr 9, 2025

What does this PR do? What is the motivation?

Documents the check_tag_cardinality option that was introduced here: DataDog/datadog-agent#29984

Merge instructions

Merge readiness:

  • Ready for merge

For Datadog employees:
Merge queue is enabled in this repo. Your branch name MUST follow the <name>/<description> convention and include the forward slash (/). Without this format, your pull request will not pass in 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.

To have your PR automatically merged after it receives the required reviews, add the following PR comment:

/merge

Additional notes

@zhuminyi zhuminyi changed the title add check_tag_cardinality [CONTP-705][integrations]add check_tag_cardinality Apr 9, 2025
@zhuminyi zhuminyi changed the title [CONTP-705][integrations]add check_tag_cardinality [CONTP-705][integrations] Document 'check_tag_cardinality' Apr 9, 2025
@zhuminyi zhuminyi marked this pull request as ready for review April 10, 2025 14:17
@zhuminyi zhuminyi requested a review from a team as a code owner April 10, 2025 14:17
@domalessi domalessi self-assigned this Apr 10, 2025
Copy link
Contributor

@domalessi domalessi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comment!

# Rest of the config here
```
You can override the global Agent-level tag cardinality for a specific check using the check_tag_cardinality configuration option. This allows you to control the level of tag granularity used for that particular check, regardless of the global setting.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhuminyi

Thanks for adding this! I’m a little unsure about including check_tag_cardinality in this section as-is—it feels a bit advanced relative to the rest of the content, and the section is getting a bit long and dense.

I'm wondering if it would be worth splitting the Tagging section into three sub-sections:

  • Global Tags (covers datadog.yaml, env, service)
  • Autodiscovered Tags (covers container/environment tags and ignore_autodiscovery_tags)
  • Advanced: Controlling Tag Cardinality (introduces check_tag_cardinality and how it overrides the global setting)

Alternatively, we can put the advanced stuff somewhere else and then simply link to that. Are all the advanced config options defined in GitHub somewhere? In the code? We often do this -- we provide the basic config in the public docs and then link to a yaml file somewhere (for example) that defines all the options.

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@zhuminyi zhuminyi force-pushed the CONTP-705-add-check_tag_cardinality branch from b5babcc to f0aef6d Compare April 10, 2025 19:30
@zhuminyi zhuminyi force-pushed the CONTP-705-add-check_tag_cardinality branch 2 times, most recently from 60d4f8b to 65dd294 Compare April 18, 2025 13:53
@zhuminyi zhuminyi force-pushed the CONTP-705-add-check_tag_cardinality branch from 65dd294 to 90009b2 Compare April 18, 2025 13:58
Copy link
Contributor

@domalessi domalessi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few formatting tweaks. Otherwise, looks great!

@zhuminyi
Copy link
Contributor Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Apr 19, 2025

View all feedbacks in Devflow UI.

2025-04-19 13:14:18 UTC ℹ️ Start processing command /merge


2025-04-19 13:14:23 UTC ℹ️ MergeQueue: waiting for PR to be ready

This merge request is not mergeable yet, because of pending checks/missing approvals. It will be added to the queue as soon as checks pass and/or get approvals.
Note: if you pushed new commits since the last approval, you may need additional approval.
You can remove it from the waiting list with /remove command.


2025-04-19 17:15:05 UTC ⚠️ MergeQueue: This merge request was unqueued

devflow unqueued this merge request: It did not become mergeable within the expected time

@domalessi
Copy link
Contributor

@zhuminyi I'm closing this PR in favor of this one: #28886

We require a specific branch name syntax for all our checks to run. We can force merge this, but I'd prefer playing it safe and just recreating under a different branch name :)

@domalessi domalessi closed this Apr 21, 2025
@domalessi domalessi deleted the CONTP-705-add-check_tag_cardinality branch September 17, 2025 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants