Add memory metrics for k8s.pod, k8s.node and container#2776
Merged
joaopgrassi merged 2 commits intoopen-telemetry:mainfrom Oct 3, 2025
Merged
Add memory metrics for k8s.pod, k8s.node and container#2776joaopgrassi merged 2 commits intoopen-telemetry:mainfrom
joaopgrassi merged 2 commits intoopen-telemetry:mainfrom
Conversation
6abebd8 to
07f3ff7
Compare
dashpole
reviewed
Sep 15, 2025
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
07f3ff7 to
4b6d510
Compare
dashpole
approved these changes
Sep 17, 2025
TylerHelmuth
approved these changes
Sep 24, 2025
Member
Author
|
@open-telemetry/specs-semconv-maintainers this one is approved by the K8s SIG, please take a look when you get the chance |
joaopgrassi
approved these changes
Oct 1, 2025
jinja2
reviewed
Oct 1, 2025
jinja2
approved these changes
Oct 1, 2025
dmitryax
reviewed
Oct 2, 2025
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1490.
Part of #1032.
Changes
This PR adds the following metrics that are already in use by the Collector at https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.135.0/receiver/kubeletstatsreceiver/documentation.md.
The metrics are the following:
k8s.node.memory.availablek8s.node.memory.rssk8s.node.memory.working_setk8s.node.memory.page_faultsrenamed tok8s.node.memory.paging.faultswith attributesystem.paging.typeset tominork8s.node.memory.major_page_faultsrenamed tok8s.node.memory.paging.faultswith attributesystem.paging.typeset tomajork8s.pod.memory.availablek8s.pod.memory.rssk8s.pod.memory.working_setk8s.pod.memory.page_faultsrenamed tok8s.pod.memory.paging.faultswith attributesystem.paging.typeset tominork8s.pod.memory.major_page_faultsrenamed tok8s.pod.memory.paging.faultswith attributesystem.paging.typeset tomajorcontainer.memory.availablecontainer.memory.rsscontainer.memory.working_setcontainer.memory.page_faultsrenamed tocontainer.memory.paging.faultswith attributesystem.paging.typeset tominorcontainer.memory.major_page_faultsrenamed tocontainer.memory.paging.faultswith attributesystem.paging.typeset tomajork8s.node.memory.*andk8s.pod.memory.*metrics are in alignment with what https://pkg.go.dev/k8s.io/kubelet@v0.34.0/pkg/apis/stats/v1alpha1 (this api is used in the Collector implementation).container.memory.*metrics are in alignment with what cadvisor provides.refs:
Merge requirement checklist
[chore]