Skip to content

Conversation

@R3hankhan123
Copy link
Contributor

@R3hankhan123 R3hankhan123 commented Jul 15, 2025

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

Added disk metrics (`container_fs_inodes_free`, `container_fs_inodes_total`, `container_fs_limit_bytes`, `container_fs_usage_bytes`)

@R3hankhan123 R3hankhan123 requested a review from mrunalp as a code owner July 15, 2025 15:11
@openshift-ci openshift-ci bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels Jul 15, 2025
@openshift-ci openshift-ci bot requested review from hasan4791 and littlejawa July 15, 2025 15:12
@openshift-ci openshift-ci bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 15, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 15, 2025

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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

@R3hankhan123 R3hankhan123 marked this pull request as draft July 15, 2025 16:21
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 15, 2025
@R3hankhan123 R3hankhan123 marked this pull request as ready for review July 15, 2025 16:24
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 15, 2025
@openshift-ci openshift-ci bot requested review from bitoku and klihub July 15, 2025 16:25
@bitoku
Copy link
Contributor

bitoku commented Jul 15, 2025

Thanks @R3hankhan123 . Can you add e2e tests in test/cri-metrics.bats?

@R3hankhan123
Copy link
Contributor Author

Thanks @R3hankhan123 . Can you add e2e tests in test/cri-metrics.bats?

Done @bitoku

@codecov
Copy link

codecov bot commented Jul 16, 2025

Codecov Report

❌ Patch coverage is 65.57377% with 42 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.19%. Comparing base (75feb2f) to head (2d66de3).
⚠️ Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9344      +/-   ##
==========================================
- Coverage   64.19%   64.19%   -0.01%     
==========================================
  Files         203      205       +2     
  Lines       28259    28357      +98     
==========================================
+ Hits        18142    18204      +62     
- Misses       8524     8553      +29     
- Partials     1593     1600       +7     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bitoku
Copy link
Contributor

bitoku commented Jul 16, 2025

/ok-to-test

@openshift-ci openshift-ci bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 16, 2025
@R3hankhan123
Copy link
Contributor Author

@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

@bitoku
Copy link
Contributor

bitoku commented Jul 16, 2025

@R3hankhan123
Copy link
Contributor Author

R3hankhan123 commented Jul 16, 2025

@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

@bitoku
Copy link
Contributor

bitoku commented Jul 16, 2025

@R3hankhan123 You can use free_port.

cri-o/test/conmon.bats

Lines 17 to 20 in 7c127d3

port=$(free_port)
CONTAINER_ENABLE_METRICS=true \
CONTAINER_METRICS_PORT=$port \
start_crio

@R3hankhan123
Copy link
Contributor Author

/retest

@haircommander
Copy link
Member

/approve

@cri-o/cri-o-maintainers PTAL

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 3, 2025
Copy link
Member

@saschagrunert saschagrunert left a comment

Choose a reason for hiding this comment

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

Code LGTM, but please fix the linting and space-at-eol CI.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 4, 2025

@R3hankhan123: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ci-e2e-evented-pleg 3c601f7 link false /test ci-e2e-evented-pleg

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.

@R3hankhan123
Copy link
Contributor Author

Done @saschagrunert , can you re trigger those pipelines, thank you

@R3hankhan123
Copy link
Contributor Author

/retest

@R3hankhan123
Copy link
Contributor Author

Hi @saschagrunert i see that you have wrote but i cant find it, so writing it here, we cannot re-use wait_for_metric.Then call crictl metricsp | jq '.podMetrics[0].containerMetrics[0].metrics[] | select(.name == "container_fs_inodes_free") | .value.value | tonumber' afterwards as that loop check for change in value of metrics

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 4, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 4, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: haircommander, R3hankhan123, saschagrunert

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [haircommander,saschagrunert]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit aa2e4a3 into cri-o:main Nov 4, 2025
75 checks passed
@R3hankhan123 R3hankhan123 deleted the disk-metrics branch November 4, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants