+
Skip to content

Conversation

SuryanarayanaPeri
Copy link

This pull request introduces a new memory metric, container_spec_memory_reservation_limit_bytes, to track the memory reservation limit for containers. The changes include adding the metric descriptor, implementing logic to calculate its values, and ensuring it is included in the list of metrics exposed by the stats server.

Addition of the new memory metric:
internal/lib/stats/descriptors.go: Added the containerSpecMemoryReservationLimitBytes descriptor to define the new metric, including its name, help text, and associated label keys.
Implementation of metric value calculation:
internal/lib/stats/memory_metrics.go: Added logic to calculate the value of containerSpecMemoryReservationLimitBytes. If the reservation exceeds maxMemorySize (unlimited), it reports a value of 0; otherwise, it reports the reservation value as a gauge metric.
Integration with stats server:
internal/lib/stats/metrics.go: Included containerSpecMemoryReservationLimitBytes in the list of metrics exposed by the stats server to ensure it is available for monitoring.

…mit_bytes

Signed-off-by: Peri, Suryanarayana <suryanarayana.peri@fmr.com>
Copy link
Contributor

openshift-ci bot commented Jul 22, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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.

@openshift-ci openshift-ci bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Jul 22, 2025
@openshift-ci openshift-ci bot requested review from hasan4791 and klihub July 22, 2025 06:14
@openshift-ci openshift-ci bot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Jul 22, 2025
Copy link
Contributor

openshift-ci bot commented Jul 22, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: SuryanarayanaPeri
Once this PR has been reviewed and has the lgtm label, please assign umohnani8 for approval. For more information see the Code Review Process.

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

Needs approval from an approver in each of these files:

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

@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 22, 2025
Copy link
Contributor

openshift-ci bot commented Jul 22, 2025

Hi @SuryanarayanaPeri. 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.

@bitoku
Copy link
Contributor

bitoku commented Jul 28, 2025

Thank you @SuryanarayanaPeri .
Can you change the description to follow the default PR template?

@SuryanarayanaPeri
Copy link
Author

Thank you @SuryanarayanaPeri . Can you change the description to follow the default PR template?

@bitoku - While I add the description to follow the PR Template; can you please provide details on the failing checks from above ?

@bitoku
Copy link
Contributor

bitoku commented Aug 5, 2025

Copy link

github-actions bot commented Sep 5, 2025

A friendly reminder that this PR had no activity for 30 days.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载