mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
kubelet: expose OOM metrics
cAdvisor has code to expose OOM metrics since 0.40.0, but this was not included in Kubelet so far. This commit enables it. Signed-off-by: Jorik Jonker <jorik.jonker@eu.equinix.com>
This commit is contained in:
parent
6ef0f3f620
commit
27b8f13763
@ -91,6 +91,7 @@ func New(imageFsInfoProvider ImageFsInfoProvider, rootPath string, cgroupRoots [
|
||||
cadvisormetrics.NetworkUsageMetrics: struct{}{},
|
||||
cadvisormetrics.AppMetrics: struct{}{},
|
||||
cadvisormetrics.ProcessMetrics: struct{}{},
|
||||
cadvisormetrics.OOMMetrics: struct{}{},
|
||||
}
|
||||
|
||||
// Only add the Accelerator metrics if the feature is inactive
|
||||
|
@ -367,6 +367,7 @@ func (s *Server) InstallDefaultHandlers() {
|
||||
cadvisormetrics.NetworkUsageMetrics: struct{}{},
|
||||
cadvisormetrics.AppMetrics: struct{}{},
|
||||
cadvisormetrics.ProcessMetrics: struct{}{},
|
||||
cadvisormetrics.OOMMetrics: struct{}{},
|
||||
}
|
||||
|
||||
// Only add the Accelerator metrics if the feature is inactive
|
||||
|
Loading…
Reference in New Issue
Block a user