diff --git a/collector/filesystem_freebsd.go b/collector/filesystem_bsd.go similarity index 98% rename from collector/filesystem_freebsd.go rename to collector/filesystem_bsd.go index 688a4dc6..c78a6549 100644 --- a/collector/filesystem_freebsd.go +++ b/collector/filesystem_bsd.go @@ -11,6 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build freebsd openbsd // +build !nofilesystem package collector @@ -54,6 +55,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) { log.Debugf("Ignoring mount point: %s", name) continue } + labelValues := []string{name} stats = append(stats, filesystemStats{ labelValues: labelValues, diff --git a/collector/filesystem_common.go b/collector/filesystem_common.go index 5e264cca..77c24847 100644 --- a/collector/filesystem_common.go +++ b/collector/filesystem_common.go @@ -12,7 +12,7 @@ // limitations under the License. // +build !nofilesystem -// +build linux freebsd +// +build linux freebsd openbsd package collector