Skip to content

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

Merged
dmitryax merged 2 commits into
open-telemetry:mainfrom
atlassian-forks:system-usage-tweak
Oct 15, 2022
Merged

[receiver/dockerstats] Disable container.cpu.usage.system by default, and expand description#14558
dmitryax merged 2 commits into
open-telemetry:mainfrom
atlassian-forks:system-usage-tweak

Conversation

@jamesmoessis

@jamesmoessis jamesmoessis commented Sep 28, 2022

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor Author

FYI @MovieStoreGuy @rmfitzpatrick

Comment thread receiver/dockerstatsreceiver/metadata.yaml

@bogdandrutu bogdandrutu left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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

mx-psi commented Oct 13, 2022

Copy link
Copy Markdown
Member

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

dmitryax commented Oct 15, 2022

Copy link
Copy Markdown
Member

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