-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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/kubeletstatsreciever] add volume attrs for CSI-backed PVCs #32055
base: main
Are you sure you want to change the base?
Changes from all commits
106c3c1
ce1a570
1f72f5a
652c2a1
6cc62d2
c1ff70b
1715998
077c70c
5f63e9e
ed5af14
737587b
534a0af
bd28c5e
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,30 @@ | ||
# Use this changelog template to create an entry for release notes. | ||
|
||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver) | ||
component: kubeletstatsreceiver | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add CSI driver and volume handle attributes for PVCs | ||
|
||
# Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
issues: [32055] | ||
|
||
# (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: | | ||
Add `container.csi.plugin.name` and `container.csi.volume.id` resource attributes to PVC metrics. | ||
If a GCP PD is detected (uses `pd.csi.storage.gke.io`), set `gce.pd.name` to the parsed disk name. | ||
This will match with disk names in GCP, allowing for correlation of GCE-native metrics. | ||
|
||
# If your change doesn't affect end users or the exported elements of any package, | ||
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
# Optional: The change log or logs in which this entry should be included. | ||
# e.g. '[user]' or '[user, api]' | ||
# Include 'user' if the change is relevant to end users. | ||
# Include 'api' if there is a change to a library API. | ||
# Default: '[user]' | ||
change_logs: [user] |
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.
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.
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.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,14 @@ resource_attributes: | |
description: "Glusterfs volume path" | ||
enabled: true | ||
type: string | ||
container.csi.volume.id: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm bit concerned from the semantic conventions perspective since those are not yet defined as resource attributes there. See open-telemetry/semantic-conventions#1337 (comment) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 This needs to go thru semconv first. I'm really not sure if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just to avoid possible confusion here. It has been added in SemConv with open-telemetry/semantic-conventions#1337 but is only part of the registry and not defined as Resource or metric attribute. So I'm not sure if we can already use it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I opened open-telemetry/semantic-conventions#1499 to clear this up. Is there anything else you can see I'm missing? |
||
description: "Container Storage Interface volume ID" | ||
enabled: true | ||
type: string | ||
container.csi.plugin.name: | ||
description: "Container Storage Interface plugin name" | ||
enabled: true | ||
type: string | ||
|
||
attributes: | ||
interface: | ||
|
@@ -534,4 +542,4 @@ tests: | |
key_file: "testdata/testkey.key" | ||
cert_file: "testdata/testcert.crt" | ||
goleak: | ||
skip: true | ||
skip: true |
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.
Could we also enhance the scraper's tests like at https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/kubeletstatsreceiver/scraper_test.go#L598? The resulted files are really useful for reference since they contain the whole information.
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.
Hm, these tests appear to be at least somewhat broken. You can alter anything in the
expectedVolumes
section of thesuccessful
test and it still passes.