-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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/dockerstatsreceiver] Add metrics that are only available on hosts that use cgroups v2 #22706
[receiver/dockerstatsreceiver] Add metrics that are only available on hosts that use cgroups v2 #22706
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: breaking | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: dockerstatsreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add non populated metrics `container.memory.anon` and `container.memory.file` that are only available when the host uses cgroups v2. | ||
|
||
# One or more tracking issues related to the change | ||
issues: [ 21097 ] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | | ||
Metric `container.memory.file` was added to fulfil the lack of `container.memory.total_cache` metric in case that the | ||
cgroup version mounted in the host is v2 instead of v1. | ||
|
||
Now there is documentation of which metrics are available depending cgroups version being used on the host. |
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wanted to check why is this marked as breaking?
From what I can tell from the user's perspective these changes are additive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, adding a new metric by default is a breaking change.
I added by default this one: https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/22706/files#diff-9fde4f9bed227e12ddb4ce32989c6acdb00339e533d8b24688bb43456dc433eaR429
And as I wrote on the PR description:
Let me know if it is not OK and I change it to enhancement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It make sense to me, happy to keep it as breaking.