Browse Source

Fix inconsistent variable name, to address compilation issue (#2820)

https://github.com/prometheus/node_exporter/issues/2819

Signed-off-by: Conall O'Brien <conall@conall.net>
pull/2814/head^2
Conall O'Brien 1 year ago committed by GitHub
parent
commit
60c86ab218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      collector/zfs_freebsd.go

2
collector/zfs_freebsd.go

@ -327,7 +327,7 @@ func (c *zfsCollector) parseFreeBSDPoolObjsetStats() error {
"nunlinked", "nunlinks", "nread", "reads", "nwritten", "writes", "nunlinked", "nunlinks", "nread", "reads", "nwritten", "writes",
} }
zfsPoolMibPrefix := "kstat.zfs.pool.dataset" zfsPoolMibPrefix := "kstat.zfs.pool.dataset"
zfsDatasetsNames := []string{} zfsDatasetNames := []string{}
zfsDatasets, err := unix.Sysctl(zfsPoolMibPrefix) zfsDatasets, err := unix.Sysctl(zfsPoolMibPrefix)
if err != nil { if err != nil {

Loading…
Cancel
Save