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

[8.x](backport #41449) Use optional values for docker memory metrics #41503

Open
wants to merge 1 commit into
base: 8.x
Choose a base branch
from

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Nov 1, 2024

Proposed commit message

Closes #40060
This deals with an issue where we were reporting docker memory rss metrics even though none exist under cgroups V2. This takes the easy way out by just changing the hashmaps to use option types, so we don't report 0 values when none should exist.

I'm not sure there's a better way to do this. As far as I can tell, there's no similar metrics in Docker's cgroups V2 reporting, and in my experience trying to be clever and derive a substitute value usually backfires for heterogeneous monitoring setups.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Disruptive User Impact

In cases where the docker/memory metrics were reporting an invalid 0, they will not not report any value at all.


This is an automatic backport of pull request #41449 done by [Mergify](https://mergify.com).

* use opt values for docker memory metrics

* fix vars, comments

* add changelog

* spelling

(cherry picked from commit 249d0dc)
@mergify mergify bot added the backport label Nov 1, 2024
@mergify mergify bot requested a review from a team as a code owner November 1, 2024 15:19
@mergify mergify bot requested review from belimawr and VihasMakwana and removed request for a team November 1, 2024 15:19
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Nov 1, 2024
@botelastic
Copy link

botelastic bot commented Nov 1, 2024

This pull request doesn't have a Team:<team> label.

Copy link
Contributor Author

mergify bot commented Nov 4, 2024

This pull request has not been merged yet. Could you please review and merge it @fearful-symmetry? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport needs_team Indicates that the issue/PR needs a Team:* label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant