Repository navigation
Conversation
Export three new GAUGE INT64 memory metrics from kubelet summary stats when using the new resource model (!useOldResourceModel): - kubernetes.io/master/kubelet/container_memory_rss on the container resource (e.g., internal_gke_master_container) from ContainerStats.Memory.RSSBytes. - kubernetes.io/master/kubelet/pod_memory_rss on the pod resource (e.g., internal_gke_master_pod) from PodStats.Memory.RSSBytes. - kubernetes.io/master/kubelet/pod_memory_working_set on the pod resource (e.g., internal_gke_master_pod) from PodStats.Memory.WorkingSetBytes. Extend getMonitoredResource to construct the pod monitored resource (schemaPrefix + "pod") with pod_name and namespace_name when no container label is present and a namespace label is provided.
courageJ
self-requested a review
October 11, 2026 17:42
courageJ
reviewed
Oct 11, 2026
| value: 65432100, | ||
| metricKind: "GAUGE", | ||
| valueType: "INT64", | ||
| startTime: "2025-04-29T15:24:11Z", |
Contributor
There was a problem hiding this comment.
Test is timezone dependent (fails locally outside UTC)
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.
Export three new
GAUGEINT64memory metrics from kubelet summary stats when using the new resource model (!useOldResourceModel):kubernetes.io/master/kubelet/container_memory_rsson the container resource (e.g.,internal_gke_master_container) fromContainerStats.Memory.RSSBytes.kubernetes.io/master/kubelet/pod_memory_rsson the pod resource (e.g.,internal_gke_master_pod) fromPodStats.Memory.RSSBytes.kubernetes.io/master/kubelet/pod_memory_working_seton the pod resource (e.g.,internal_gke_master_pod) fromPodStats.Memory.WorkingSetBytes.Extend
getMonitoredResourceto construct the pod monitored resource (schemaPrefix + "pod") withpod_nameandnamespace_namewhen nocontainerlabel is present and anamespacelabel is provided.cc @courageJ