Skip to content

Commit 97bdbf4

Browse files
author
Joeri Hermans
committed
Update GPUs exporter
1 parent 1508f06 commit 97bdbf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gpus.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ package main
1717

1818
import (
1919
"github.com/prometheus/client_golang/prometheus"
20+
"github.com/prometheus/common/log"
2021
"io/ioutil"
21-
"log"
2222
"os/exec"
2323
"strings"
2424
)
@@ -51,8 +51,9 @@ func ParseTotalGPUs() float64 {
5151
output := string(Execute("sinfo", args))
5252
if len(output) > 0 {
5353
for _, line := range strings.Split(output, "\n") {
54+
log.Infof("Line %s: ", line)
5455
descriptor := strings.Split(line, " ")[0]
55-
log.Fatal(descriptor)
56+
log.Infof("Descriptor %s: ", descriptor)
5657
}
5758
}
5859

0 commit comments

Comments
 (0)