mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-19 17:16:12 +00:00
kubelet: update cAdvisor usage for v0.43
* Change cAdvisor manager constructor * Change call to adding AcceleratorUsageMetrics Signed-off-by: David Porter <david@porter.me>
This commit is contained in:
@@ -373,7 +373,7 @@ func (s *Server) InstallDefaultHandlers() {
|
||||
// Only add the Accelerator metrics if the feature is inactive
|
||||
// Note: Accelerator metrics will be removed in the future, hence the feature gate.
|
||||
if !utilfeature.DefaultFeatureGate.Enabled(features.DisableAcceleratorUsageMetrics) {
|
||||
includedMetrics.Add(cadvisormetrics.MetricKind(cadvisormetrics.AcceleratorUsageMetrics))
|
||||
includedMetrics[cadvisormetrics.AcceleratorUsageMetrics] = struct{}{}
|
||||
}
|
||||
|
||||
cadvisorOpts := cadvisorv2.RequestOptions{
|
||||
|
Reference in New Issue
Block a user