diff options
author | Ben Kochie <superq@gmail.com> | 2020-06-14 08:44:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-14 08:44:02 +0200 |
commit | 2cefe3d769b161388fe3635a7243cffaac803d43 (patch) | |
tree | b3ab342ea455f9129610cb72c217d6e6bb7f35bd | |
parent | 594f417bdf6f49e145f1937af99e849377412354 (diff) | |
parent | cb7ab5119a07f2e3c80a4d1728fa7b6d07c650e6 (diff) | |
download | prometheus_node_collector-2cefe3d769b161388fe3635a7243cffaac803d43.tar.bz2 prometheus_node_collector-2cefe3d769b161388fe3635a7243cffaac803d43.tar.xz prometheus_node_collector-2cefe3d769b161388fe3635a7243cffaac803d43.zip |
Merge pull request #1745 from jeffreystoke/master
Fix build tags for collectors
-rw-r--r-- | collector/drbd_linux.go | 2 | ||||
-rw-r--r-- | collector/filesystem_linux_test.go | 2 | ||||
-rw-r--r-- | collector/kvm_bsd.go | 2 | ||||
-rw-r--r-- | collector/mountstats_linux.go | 2 | ||||
-rw-r--r-- | collector/nfs_linux.go | 2 | ||||
-rw-r--r-- | collector/nfsd_linux.go | 2 | ||||
-rw-r--r-- | collector/perf_linux.go | 2 | ||||
-rw-r--r-- | collector/schedstat_linux.go | 2 | ||||
-rw-r--r-- | collector/sysctl_bsd.go | 2 | ||||
-rw-r--r-- | collector/wifi_linux.go | 2 | ||||
-rw-r--r-- | collector/xfs_linux.go | 2 | ||||
-rw-r--r-- | collector/zfs_freebsd.go | 2 | ||||
-rw-r--r-- | collector/zfs_linux.go | 2 | ||||
-rw-r--r-- | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nodrbd | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nofilesystem | ||
15 | |||
16 | package collector | 14 | package collector |
17 | 15 | ||
18 | import ( | 16 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nomeminfo | 14 | // +build !nokvm |
15 | // +build freebsd dragonfly | 15 | // +build freebsd dragonfly |
16 | 16 | ||
17 | package collector | 17 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nomountstats | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nonfs | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nonfsd | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !noperf | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !noshedstat | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build freebsd dragonfly openbsd netbsd darwin | 14 | // +build freebsd dragonfly openbsd netbsd darwin |
15 | // +build !nomeminfo | 15 | // +build cgo |
16 | 16 | ||
17 | package collector | 17 | package collector |
18 | 18 | ||
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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nowifi | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !noxfs | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nozfs | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
11 | // See the License for the specific language governing permissions and | 11 | // See the License for the specific language governing permissions and |
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build !nozfs | ||
15 | |||
14 | package collector | 16 | package collector |
15 | 17 | ||
16 | import ( | 18 | 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 @@ | |||
12 | // limitations under the License. | 12 | // limitations under the License. |
13 | 13 | ||
14 | // +build solaris | 14 | // +build solaris |
15 | // +build !nozfs | ||
15 | 16 | ||
16 | package collector | 17 | package collector |
17 | 18 | ||