Skip to content

Commit cdc5c03

Browse files
tnextdayoblitorum
authored andcommitted
Skip zfs iostats (prometheus#2451)
skip over the zfs IO metrics if their paths are missing Signed-off-by: tnextday <[email protected]> Signed-off-by: tnextday <[email protected]>
1 parent f569a7d commit cdc5c03

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

collector/zfs_linux.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ func (c *zfsCollector) updatePoolStats(ch chan<- prometheus.Metric) error {
7474
return err
7575
}
7676

77-
if zpoolPaths == nil {
78-
return nil
79-
}
80-
8177
for _, zpoolPath := range zpoolPaths {
8278
file, err := os.Open(zpoolPath)
8379
if err != nil {

0 commit comments

Comments
 (0)