mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #79002 from jiayingz/add-cadvisor-metrics
Enable cadvisor ProcessMetrics collecting.
This commit is contained in:
commit
6602f61596
@ -310,6 +310,7 @@ func (s *Server) InstallDefaultHandlers(enableCAdvisorJSONEndpoints bool) {
|
|||||||
cadvisormetrics.NetworkUsageMetrics: struct{}{},
|
cadvisormetrics.NetworkUsageMetrics: struct{}{},
|
||||||
cadvisormetrics.AcceleratorUsageMetrics: struct{}{},
|
cadvisormetrics.AcceleratorUsageMetrics: struct{}{},
|
||||||
cadvisormetrics.AppMetrics: struct{}{},
|
cadvisormetrics.AppMetrics: struct{}{},
|
||||||
|
cadvisormetrics.ProcessMetrics: struct{}{},
|
||||||
}
|
}
|
||||||
r.MustRegister(metrics.NewPrometheusCollector(prometheusHostAdapter{s.host}, containerPrometheusLabelsFunc(s.host), includedMetrics))
|
r.MustRegister(metrics.NewPrometheusCollector(prometheusHostAdapter{s.host}, containerPrometheusLabelsFunc(s.host), includedMetrics))
|
||||||
s.restfulCont.Handle(cadvisorMetricsPath,
|
s.restfulCont.Handle(cadvisorMetricsPath,
|
||||||
|
Loading…
Reference in New Issue
Block a user