-
Notifications
You must be signed in to change notification settings - Fork 268
Add memory metrics for k8s.pod, k8s.node and container #2776
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
Merged
joaopgrassi
merged 2 commits into
open-telemetry:main
from
ChrsMark:add_k8s_memory_metrics
Oct 3, 2025
Merged
Add memory metrics for k8s.pod, k8s.node and container #2776
joaopgrassi
merged 2 commits into
open-telemetry:main
from
ChrsMark:add_k8s_memory_metrics
Oct 3, 2025
Conversation
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
6abebd8
to
07f3ff7
Compare
dashpole
reviewed
Sep 15, 2025
Signed-off-by: ChrsMark <[email protected]>
07f3ff7
to
4b6d510
Compare
dashpole
approved these changes
Sep 17, 2025
TylerHelmuth
approved these changes
Sep 24, 2025
@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 <[email protected]>
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.available
k8s.node.memory.rss
k8s.node.memory.working_set
k8s.node.memory.page_faults
renamed tok8s.node.memory.paging.faults
with attributesystem.paging.type
set tominor
k8s.node.memory.major_page_faults
renamed tok8s.node.memory.paging.faults
with attributesystem.paging.type
set tomajor
k8s.pod.memory.available
k8s.pod.memory.rss
k8s.pod.memory.working_set
k8s.pod.memory.page_faults
renamed tok8s.pod.memory.paging.faults
with attributesystem.paging.type
set tominor
k8s.pod.memory.major_page_faults
renamed tok8s.pod.memory.paging.faults
with attributesystem.paging.type
set tomajor
container.memory.available
container.memory.rss
container.memory.working_set
container.memory.page_faults
renamed tocontainer.memory.paging.faults
with attributesystem.paging.type
set tominor
container.memory.major_page_faults
renamed tocontainer.memory.paging.faults
with attributesystem.paging.type
set tomajor
k8s.node.memory.*
andk8s.pod.memory.*
metrics are in alignment with what https://pkg.go.dev/k8s.io/[email protected]/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]