Skip to content

Conversation

@arbll
Copy link
Member

@arbll arbll commented Oct 23, 2025

This PR is the equivalent of DataDog/datadog-agent#42081 for vsphere metrics.

This PR is the equivalent of DataDog/datadog-agent#42081 for vsphere metrics.
Copy link
Contributor

@AAraKKe AAraKKe left a comment

Choose a reason for hiding this comment

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

Hi @arbll I left a couple of questions. Just make sure to update the tests to ensure they are testing the current behavior.

I removed the no-changelog tag as this would not qualify for that use case. Any change that is going to be included in a future release of the agent needs to include a changelog that adds visibility to what has been modified both for us and for our customers.

Thanks!

My Feedback Legend

Here's a quick guide to the prefixes I use in my comments:

praise: no action needed, just celebrate!
note: just a comment/information, no need to take any action.
question: I need clarification or I'm seeking to understand your approach.
nit: A minor, non-blocking issue (e.g., style, typo). Feel free to ignore.
suggestion: I'm proposing an improvement. This is optional but recommended.
request: A change I believe is necessary before this can be merged.

The only blocking comments are request, any other type of comment can be applied at discretion of the developer.

Copy link
Member

@olivielpeau olivielpeau left a comment

Choose a reason for hiding this comment

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

Added a comment about something I'm not sure about.

Also, curious if we could add a test for this

tags.append('infra_mode:{}'.format(infra_mode))

value = valid_values[-1]
if metric_name in PERCENT_METRICS:
Copy link
Member

Choose a reason for hiding this comment

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

Unsure when the vsphere. prefix is added to the collected metric_name (the logic here matches the metric_name against PERCENT_METRICS, which does not have this prefix, see code )

Copy link
Member

Choose a reason for hiding this comment

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

The vsphere. prefix is added by the __NAMESPACE__ attribute, see:

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed this but will doublecheck with the live test that it's working properly

@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.00%. Comparing base (a32934f) to head (054e0ea).
⚠️ Report is 5 commits behind head on master.

Additional details and impacted files
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

4 participants