From 02a4436ad1d5bf8b216b4efee1cc540c2564c329 Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Fri, 13 Nov 2020 15:20:54 -0800 Subject: [PATCH] don't fail permenantly when nvml isn't installed --- accelerators/nvidia.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/accelerators/nvidia.go b/accelerators/nvidia.go index 08d5108f38..1c51b5deae 100644 --- a/accelerators/nvidia.go +++ b/accelerators/nvidia.go @@ -58,9 +58,7 @@ func NewNvidiaManager(includedMetrics container.MetricSet) stats.Manager { manager := &nvidiaManager{} err := manager.setup() if err != nil { - klog.Warningf("NVIDIA GPU metrics will not be available: %s", err) - manager.Destroy() - return &stats.NoopManager{} + klog.V(2).Infof("NVIDIA setup failed: %s", err) } return manager }