From cb7ab5119a07f2e3c80a4d1728fa7b6d07c650e6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stoke Date: Fri, 12 Jun 2020 10:26:30 +0200 Subject: Fix collectors' build tags Signed-off-by: Jeffrey Stoke --- collector/drbd_linux.go | 2 ++ collector/filesystem_linux_test.go | 2 -- collector/kvm_bsd.go | 2 +- collector/mountstats_linux.go | 2 ++ collector/nfs_linux.go | 2 ++ collector/nfsd_linux.go | 2 ++ collector/perf_linux.go | 2 ++ collector/schedstat_linux.go | 2 ++ collector/sysctl_bsd.go | 2 +- collector/wifi_linux.go | 2 ++ collector/xfs_linux.go | 2 ++ collector/zfs_freebsd.go | 2 ++ collector/zfs_linux.go | 2 ++ collector/zfs_solaris.go | 1 + 14 files changed, 23 insertions(+), 4 deletions(-) diff --git a/collector/drbd_linux.go b/collector/drbd_linux.go index 6815c5f..4beb31d 100644 --- a/collector/drbd_linux.go +++ b/collector/drbd_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !nodrbd + package collector import ( diff --git a/collector/filesystem_linux_test.go b/collector/filesystem_linux_test.go index 973cd14..e401779 100644 --- a/collector/filesystem_linux_test.go +++ b/collector/filesystem_linux_test.go @@ -11,8 +11,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build !nofilesystem - package collector import ( diff --git a/collector/kvm_bsd.go b/collector/kvm_bsd.go index b4e95e6..8798736 100644 --- a/collector/kvm_bsd.go +++ b/collector/kvm_bsd.go @@ -11,7 +11,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -// +build !nomeminfo +// +build !nokvm // +build freebsd dragonfly package collector diff --git a/collector/mountstats_linux.go b/collector/mountstats_linux.go index 3fa1597..4102067 100644 --- a/collector/mountstats_linux.go +++ b/collector/mountstats_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !nomountstats + package collector import ( diff --git a/collector/nfs_linux.go b/collector/nfs_linux.go index 55f9e19..a540bb3 100644 --- a/collector/nfs_linux.go +++ b/collector/nfs_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !nonfs + package collector import ( diff --git a/collector/nfsd_linux.go b/collector/nfsd_linux.go index b6f2f8e..8cb1e05 100644 --- a/collector/nfsd_linux.go +++ b/collector/nfsd_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !nonfsd + package collector import ( diff --git a/collector/perf_linux.go b/collector/perf_linux.go index e452754..3a2f739 100644 --- a/collector/perf_linux.go +++ b/collector/perf_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !noperf + package collector import ( diff --git a/collector/schedstat_linux.go b/collector/schedstat_linux.go index d2f04f6..9e5b744 100644 --- a/collector/schedstat_linux.go +++ b/collector/schedstat_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !noshedstat + package collector import ( diff --git a/collector/sysctl_bsd.go b/collector/sysctl_bsd.go index 3038f41..a671bc2 100644 --- a/collector/sysctl_bsd.go +++ b/collector/sysctl_bsd.go @@ -12,7 +12,7 @@ // limitations under the License. // +build freebsd dragonfly openbsd netbsd darwin -// +build !nomeminfo +// +build cgo package collector diff --git a/collector/wifi_linux.go b/collector/wifi_linux.go index 118e714..b4b3759 100644 --- a/collector/wifi_linux.go +++ b/collector/wifi_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !nowifi + package collector import ( diff --git a/collector/xfs_linux.go b/collector/xfs_linux.go index 77824c5..36dfff5 100644 --- a/collector/xfs_linux.go +++ b/collector/xfs_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !noxfs + package collector import ( diff --git a/collector/zfs_freebsd.go b/collector/zfs_freebsd.go index a625bbc..92661e4 100644 --- a/collector/zfs_freebsd.go +++ b/collector/zfs_freebsd.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !nozfs + package collector import ( diff --git a/collector/zfs_linux.go b/collector/zfs_linux.go index e2c9749..2449c26 100644 --- a/collector/zfs_linux.go +++ b/collector/zfs_linux.go @@ -11,6 +11,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// +build !nozfs + package collector import ( diff --git a/collector/zfs_solaris.go b/collector/zfs_solaris.go index bfda64f..1c0460c 100644 --- a/collector/zfs_solaris.go +++ b/collector/zfs_solaris.go @@ -12,6 +12,7 @@ // limitations under the License. // +build solaris +// +build !nozfs package collector -- cgit v1.2.3