Skip to content

Commit cb7ab51

Browse files
author
Jeffrey Stoke
committed
Fix collectors' build tags
Signed-off-by: Jeffrey Stoke <me@arhat.dev>
1 parent 594f417 commit cb7ab51

14 files changed

Lines changed: 23 additions & 4 deletions

collector/drbd_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// +build !nodrbd
15+
1416
package collector
1517

1618
import (

collector/filesystem_linux_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
// +build !nofilesystem
15-
1614
package collector
1715

1816
import (

collector/kvm_bsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14-
// +build !nomeminfo
14+
// +build !nokvm
1515
// +build freebsd dragonfly
1616

1717
package collector

collector/mountstats_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// +build !nomountstats
15+
1416
package collector
1517

1618
import (

collector/nfs_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// +build !nonfs
15+
1416
package collector
1517

1618
import (

collector/nfsd_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// +build !nonfsd
15+
1416
package collector
1517

1618
import (

collector/perf_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// +build !noperf
15+
1416
package collector
1517

1618
import (

collector/schedstat_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// +build !noshedstat
15+
1416
package collector
1517

1618
import (

collector/sysctl_bsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// limitations under the License.
1313

1414
// +build freebsd dragonfly openbsd netbsd darwin
15-
// +build !nomeminfo
15+
// +build cgo
1616

1717
package collector
1818

collector/wifi_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// See the License for the specific language governing permissions and
1212
// limitations under the License.
1313

14+
// +build !nowifi
15+
1416
package collector
1517

1618
import (

0 commit comments

Comments
 (0)