Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmd/vGPUmonitor/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,8 @@ func (cc ClusterManagerCollector) collectContainerMetrics(ch chan<- prometheus.M
for i := range c.Info.DeviceNum() {
uuid := c.Info.DeviceUUID(i)
if len(uuid) < 40 {
klog.Errorf("Invalid UUID length for device %d in Pod %s/%s, Container %s", i, pod.Namespace, pod.Name, ctr.Name)
return fmt.Errorf("invalid UUID length for device %d", i)
klog.Warningf("Device %d in Pod %s/%s, Container %s has invalid UUID length %d (shared memory not yet initialised); skipping until next scrape", i, pod.Namespace, pod.Name, ctr.Name, len(uuid))
continue
Comment thread
archlitchi marked this conversation as resolved.
}
uuid = uuid[0:40] // Ensure UUID is truncated to 40 characters
if !utf8.ValidString(uuid) {
Expand Down
Loading