Skip to content

Commit

Permalink
Skip zfs iostats (#2451)
Browse files Browse the repository at this point in the history
skip over the zfs IO metrics if their paths are missing

Signed-off-by: tnextday <fw2k4@163.com>

Signed-off-by: tnextday <fw2k4@163.com>
  • Loading branch information
tnextday committed Sep 22, 2022
1 parent 863f3ac commit d7e89e7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions collector/zfs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ func (c *zfsCollector) updatePoolStats(ch chan<- prometheus.Metric) error {
return err
}

if zpoolPaths == nil {
return nil
}

for _, zpoolPath := range zpoolPaths {
file, err := os.Open(zpoolPath)
if err != nil {
Expand Down

0 comments on commit d7e89e7

Please sign in to comment.