collector: add openbsd suport to filesystem colector

This commit is contained in:
Nick Owens 2015-11-01 19:17:11 -08:00
parent 110fe938e6
commit b58d1fc971
2 changed files with 3 additions and 1 deletions

View file

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build freebsd openbsd
// +build !nofilesystem // +build !nofilesystem
package collector package collector
@ -54,6 +55,7 @@ func (c *filesystemCollector) GetStats() (stats []filesystemStats, err error) {
log.Debugf("Ignoring mount point: %s", name) log.Debugf("Ignoring mount point: %s", name)
continue continue
} }
labelValues := []string{name} labelValues := []string{name}
stats = append(stats, filesystemStats{ stats = append(stats, filesystemStats{
labelValues: labelValues, labelValues: labelValues,

View file

@ -12,7 +12,7 @@
// limitations under the License. // limitations under the License.
// +build !nofilesystem // +build !nofilesystem
// +build linux freebsd // +build linux freebsd openbsd
package collector package collector