Skip to content

Conversation

@bitomaxsp
Copy link
Contributor

What does this PR do? What is the motivation?

Merge instructions

Merge readiness:

  • Ready for merge

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

@bitomaxsp bitomaxsp requested a review from a team as a code owner November 10, 2025 13:13
@github-actions
Copy link
Contributor

Preview links (active after the build_preview check completes)

Modified Files

@cswatt cswatt self-assigned this Nov 10, 2025

**Note**: This functionality requires Cluster Agent 7.63.0+

It is possible to use the kubernetes_state_core check to collect custom resource metrics when running Cluster Agent.

Choose a reason for hiding this comment

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

maybe: The kubernetes_state_core check can be configured to collect custom resource metrics when running the Cluster Agent.

@cswatt
Copy link
Contributor

cswatt commented Nov 10, 2025

I've pushed some edits:

  • Change heading to be sentence-case
  • Reformat to minimize user having to jump around
  • More explicit about what <CUSTOM_RESOURCE_METRIC> is — it's definitions for custom resources and the fields to turn into metrics
  • Other smaller reformatting things

@cswatt cswatt merged commit fca36bb into master Nov 10, 2025
18 of 19 checks passed
@cswatt cswatt deleted the dep/ksmcrm branch November 10, 2025 20:58
brett0000FF pushed a commit that referenced this pull request Nov 10, 2025
* Add KSM CR metrics

* Fixes after review

* Update configuration.md

---------

Co-authored-by: cecilia saixue wat-kim <cecilia.watt@datadoghq.com>
Copy link
Member

@sblumenthal sblumenthal left a comment

Choose a reason for hiding this comment

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

I have some (late) comments

{{% /tab %}}
{{% tab "Datadog Operator" %}}

1. Install the Datadog Operator with an option that grants the Datadog Agent permission to collect custom resources:
Copy link
Member

Choose a reason for hiding this comment

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

This should be updated to signify that it requires operator v1.20+

group: "vpcresources.k8s.aws"
kind: "CNINode"
version: "v1alpha1"
resource: "cninode-pluralized"
Copy link
Member

Choose a reason for hiding this comment

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

What this field is / why it is needed / when it is needed could be explicitly called out somewhere here

labelsFromPath:
crd_name: [metadata, name]
metrics:
- name: "eniconfig"
Copy link
Member

Choose a reason for hiding this comment

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

It is not clear in this doc that this would result in a metric named (I am assuming) kubernetes_state_customresource.eniconfig

The kubernetes_state_customresource prefix behavior should be called out somewhere in this doc

Likewise, the behavior when the a metricNamePrefix is specified should also be documented (it would result in a metric like kubernetes_state_customresource.<metricNamePrefix>_<metricName>

@bitomaxsp
Copy link
Contributor Author

bitomaxsp commented Nov 11, 2025

Follow up fixes were done here: #32753

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants