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/kubeletstats]Add node runtime imagefs metrics #25880

Closed

Conversation

yantingqiu
Copy link

@yantingqiu yantingqiu commented Aug 18, 2023

[receiver/kubelet]Add runtime imagesfs metrics for node

Description:
This PR added runtime imagefs metrics for node.

Testing:

  1. test locally using the otel demo

  2. unit test

@yantingqiu yantingqiu requested a review from dmitryax as a code owner August 18, 2023 09:37
@yantingqiu yantingqiu requested a review from a team August 18, 2023 09:37
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 18, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: yantingqiu / name: ytq (1ba49ba)

receiver/kubeletstatsreceiver/metadata.yaml Outdated Show resolved Hide resolved
attributes: []
k8s.node.runtime.imagefs.inodes_used:
enabled: true
description: Node runtime imagefs inodes_used
Copy link
Member

Choose a reason for hiding this comment

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

Can you add in the description that this may not equal Inodes - InodesFree

@@ -187,6 +187,48 @@ metrics:
monotonic: true
aggregation_temporality: cumulative
attributes: []
k8s.node.runtime.imagefs.available:
enabled: true
Copy link
Member

@dmitryax dmitryax Aug 28, 2023

Choose a reason for hiding this comment

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

New metrics should be added as optional. If they need to be enabled by default, it should be done via a separate process (by adding warnings first) after the metrics are in place. Please see https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/scraping-receivers.md for more details

Copy link
Author

Choose a reason for hiding this comment

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

I am very sorry for my foolish mistake that requires me to resubmit the pull request.Thank you for reviewing the code:#26259

@yantingqiu
Copy link
Author

I am very sorry for my foolish mistake that requires me to resubmit the pull request.Thank you for reviewing the code.

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