Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build tags for collectors #1745

Merged
merged 1 commit into from Jun 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions collector/drbd_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nodrbd

package collector

import (
Expand Down
2 changes: 0 additions & 2 deletions collector/filesystem_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nofilesystem

package collector

import (
Expand Down
2 changes: 1 addition & 1 deletion collector/kvm_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions collector/mountstats_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nomountstats

package collector

import (
Expand Down
2 changes: 2 additions & 0 deletions collector/nfs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nonfs

package collector

import (
Expand Down
2 changes: 2 additions & 0 deletions collector/nfsd_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nonfsd

package collector

import (
Expand Down
2 changes: 2 additions & 0 deletions collector/perf_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !noperf

package collector

import (
Expand Down
2 changes: 2 additions & 0 deletions collector/schedstat_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !noshedstat

package collector

import (
Expand Down
2 changes: 1 addition & 1 deletion collector/sysctl_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// limitations under the License.

// +build freebsd dragonfly openbsd netbsd darwin
// +build !nomeminfo
// +build cgo

package collector

Expand Down
2 changes: 2 additions & 0 deletions collector/wifi_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nowifi

package collector

import (
Expand Down
2 changes: 2 additions & 0 deletions collector/xfs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !noxfs

package collector

import (
Expand Down
2 changes: 2 additions & 0 deletions collector/zfs_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nozfs

package collector

import (
Expand Down
2 changes: 2 additions & 0 deletions collector/zfs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// +build !nozfs

package collector

import (
Expand Down
1 change: 1 addition & 0 deletions collector/zfs_solaris.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// limitations under the License.

// +build solaris
// +build !nozfs

package collector

Expand Down