mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-28 06:59:44 -08:00
Merge pull request #156 from mischief/filesystem-bsd
collector: add openbsd suport to filesystem colector
This commit is contained in:
commit
14078251c5
|
@ -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,
|
|
@ -12,7 +12,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
// +build !nofilesystem
|
||||
// +build linux freebsd
|
||||
// +build linux freebsd openbsd
|
||||
|
||||
package collector
|
||||
|
||||
|
|
Loading…
Reference in a new issue