-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: Add Disk Metrics #9344
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
base: main
Are you sure you want to change the base?
feat: Add Disk Metrics #9344
Conversation
Hi @R3hankhan123. Thanks for your PR. I'm waiting for a cri-o member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
7ba0ec1
to
9df95df
Compare
Thanks @R3hankhan123 . Can you add e2e tests in test/cri-metrics.bats? |
9df95df
to
2a81e7d
Compare
Done @bitoku |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9344 +/- ##
==========================================
- Coverage 67.11% 66.52% -0.59%
==========================================
Files 202 203 +1
Lines 27900 27994 +94
==========================================
- Hits 18725 18623 -102
- Misses 7603 7789 +186
- Partials 1572 1582 +10 🚀 New features to boost your workflow:
|
2a81e7d
to
bf0ebff
Compare
/ok-to-test |
bf0ebff
to
0bd729d
Compare
@bitoku can you help me debug the prow tests, i see that container is being exited but can't find the reason why exactly its exiting |
@R3hankhan123 I think other e2e tests come from infra issues, not because of this change. |
@bitoku , looks like port 9090 is being used when trying to run disk metrics but its already in use, should i kill the process that is using the port (ie memory metrics crio) wdyt |
@R3hankhan123 You can use Lines 17 to 20 in 7c127d3
|
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 out of curiosity. Do you happen to generate the code with AI?
Only for the test cases(not good at writing bat files and shell scripts 🥲😅, also its a new thing for me) |
fd41dec
to
2a11a18
Compare
@R3hankhan123: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
2a11a18
to
cf93109
Compare
Hi @bitoku can you retrigger |
Hi @bitoku any more suggestions you have that I need to address, please and thank you |
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.
/lgtm
containerFsInodesFree = &types.MetricDescriptor{ | ||
Name: "container_fs_inodes_free", | ||
Help: "Number of free inodes.", | ||
LabelKeys: baseLabelKeys, | ||
} |
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.
we could add extra labels, but I found general discrepancies in labels between crio and cadvisor. we can ignore it for now.
https://github.com/google/cadvisor/blob/5adb1c3bb38b4c5d50b31f39faf3214a44ae479b/metrics/prometheus.go#L537
@cri-o/cri-o-maintainers PTAL |
Thanks @bitoku for the review, once the PR is approved I will start implementing the DISK IO metrics also |
Hi @cri-o/cri-o-maintainers PTAL when you get a chance 🙏. Thanks! |
Signed-off-by: Rehan Khan <Rehan.Khan7@ibm.com>
Signed-off-by: Rehan Khan <Rehan.Khan7@ibm.com>
Signed-off-by: Rehan Khan <Rehan.Khan7@ibm.com>
cf93109
to
4907339
Compare
@bitoku rebasing removed the lgtm tag😅 |
/lgtm |
A friendly reminder that this PR had no activity for 30 days. |
/remove-lifecycle stale |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR implements the previously missing disk metrics:
container_fs_inodes_free
container_fs_inodes_total
container_fs_limit_bytes
container_fs_usage_bytes
Which issue(s) this PR fixes:
contributes towards #9125
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?
No