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:
Jorik Jonker 2022-02-07 19:46:41 +01:00
parent 6ef0f3f620
commit 27b8f13763
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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