Skip to content
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

[receiver/dockerstats] Disable container.cpu.usage.system by default, and expand description #14558

Merged
merged 2 commits into from
Oct 15, 2022

Conversation

jamesmoessis
Copy link
Contributor

@jamesmoessis jamesmoessis commented Sep 28, 2022

Description:

  • container.cpu.usage.system is no longer a default metric.
  • Added more description for the metric, since I believe it had the possibility to mislead users.

My rationale behind disabling this as a default metric, is that it has the potential to be misleading unless the user has explicitly read the description. It also duplicates system CPU metrics emitted by the hostmetricsreceiver. I thought about completely removing it, but I thought I better leave it in since it is something that docker reports.

Change is technically breaking, but only behind the non-default featuregate. I don't expect it will impact any users.

Link to tracking Issue: #9794

Testing:

Tests were updated to test for the updated description

Documentation:

Go generate / mdatagen updates the docs.

@jamesmoessis
Copy link
Contributor Author

FYI @MovieStoreGuy @rmfitzpatrick

Copy link
Member

@bogdandrutu bogdandrutu left a comment

Choose a reason for hiding this comment

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

@open-telemetry/collector-contrib-approvers how do you want to do this?

@MovieStoreGuy
Copy link
Contributor

@bogdandrutu , not an approver but as I understand that this change is a low risk due to the fact that receiver has yet to adopt the version 2 of the scraper as the default. (Version 2 captures metrics using the generated metrics file)

@mx-psi
Copy link
Member

mx-psi commented Oct 13, 2022

IMHO since the stability of this feature gate is alpha

we just need to list the change as breaking and move on. The whole point of feature gates is to allow doing breaking changes more quickly, we should make clear that this is breaking but that's about it.

@dmitryax
Copy link
Member

dmitryax commented Oct 15, 2022

If it's behind a feature gate that is disabled by default, I believe we can move on

@dmitryax dmitryax merged commit 59ab556 into open-telemetry:main Oct 15, 2022
@jamesmoessis jamesmoessis deleted the system-usage-tweak branch October 15, 2022 01:09
shalper2 pushed a commit to shalper2/opentelemetry-collector-contrib that referenced this pull request Dec 6, 2022
@plantfansam plantfansam mentioned this pull request Jul 21, 2023
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.

6 participants