@cryptotaxi247 / netdata-1 / commits / 45b18c777

chore(go.d.plugin): add build tags to modules (#18900)

Ilya Mashchenko committed Oct 30, 2024 at 17:40 UTC 45b18c777aeb344bcf2728e87941fc782a1faa46
144 files changed +271 -34
src/go/plugin/go.d/modules/adaptecraid/adaptec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/adaptec_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/collect_ld.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/collect_pd.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package adaptecraid
src/go/plugin/go.d/modules/adaptecraid/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package adaptecraid
6
7 import (
src/go/plugin/go.d/modules/adaptecraid/metadata.yaml
+1 -1
@@ -33,7 +33,7 @@ modules:
33 - `arcconf GETCONFIG 1 PD`
34 method_description: ""
35 supported_platforms:
36 - include: []
36 + include: [Linux, BSD]
37 exclude: []
38 multi_instance: false
39 additional_permissions:
src/go/plugin/go.d/modules/ap/ap.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package ap
6
7 import (
src/go/plugin/go.d/modules/ap/ap_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package ap
6
7 import (
src/go/plugin/go.d/modules/ap/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package ap
6
7 import (
src/go/plugin/go.d/modules/ap/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package ap
6
7 import (
src/go/plugin/go.d/modules/ap/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package ap
src/go/plugin/go.d/modules/ap/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package ap
6
7 import (
src/go/plugin/go.d/modules/ap/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package ap
6
7 import (
src/go/plugin/go.d/modules/dmcache/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dmcache
6
7 import (
src/go/plugin/go.d/modules/dmcache/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dmcache
6
7 import (
src/go/plugin/go.d/modules/dmcache/dmcache.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dmcache
6
7 import (
src/go/plugin/go.d/modules/dmcache/dmcache_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dmcache
6
7 import (
src/go/plugin/go.d/modules/dmcache/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package dmcache
src/go/plugin/go.d/modules/dmcache/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dmcache
6
7 import (
src/go/plugin/go.d/modules/dmcache/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dmcache
6
7 import (
src/go/plugin/go.d/modules/dnsmasq_dhcp/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dnsmasq_dhcp
6
7 import (
src/go/plugin/go.d/modules/dnsmasq_dhcp/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dnsmasq_dhcp
6
7 import (
src/go/plugin/go.d/modules/dnsmasq_dhcp/dhcp.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dnsmasq_dhcp
6
7 import (
src/go/plugin/go.d/modules/dnsmasq_dhcp/dhcp_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dnsmasq_dhcp
6
7 import (
src/go/plugin/go.d/modules/dnsmasq_dhcp/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package dnsmasq_dhcp
src/go/plugin/go.d/modules/dnsmasq_dhcp/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dnsmasq_dhcp
6
7 import "errors"
src/go/plugin/go.d/modules/dnsmasq_dhcp/metadata.yaml
+1 -1
@@ -31,7 +31,7 @@ modules:
31 - `/etc/dnsmasq.d` to find additional configurations.
32 method_description: ""
33 supported_platforms:
34 - include: []
34 + include: [Linux]
35 exclude: []
36 multi_instance: false
37 additional_permissions:
src/go/plugin/go.d/modules/dnsmasq_dhcp/parse_configuration.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package dnsmasq_dhcp
6
7 import (
src/go/plugin/go.d/modules/fail2ban/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package fail2ban
6
7 import (
src/go/plugin/go.d/modules/fail2ban/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package fail2ban
6
7 import (
src/go/plugin/go.d/modules/fail2ban/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package fail2ban
src/go/plugin/go.d/modules/fail2ban/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package fail2ban
6
7 import (
src/go/plugin/go.d/modules/fail2ban/fail2ban.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package fail2ban
6
7 import (
src/go/plugin/go.d/modules/fail2ban/fail2ban_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package fail2ban
6
7 import (
src/go/plugin/go.d/modules/fail2ban/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package fail2ban
6
7 import (
src/go/plugin/go.d/modules/fail2ban/metadata.yaml
+1 -1
@@ -30,7 +30,7 @@ modules:
30 This approach eliminates the need to use `sudo`, improving security and potentially simplifying permission management.
31 method_description: ""
32 supported_platforms:
33 - include: []
33 + include: [Linux]
34 exclude: []
35 multi_instance: false
36 additional_permissions:
src/go/plugin/go.d/modules/isc_dhcpd/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package isc_dhcpd
6
7 import (
src/go/plugin/go.d/modules/isc_dhcpd/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package isc_dhcpd
6
7 import (
src/go/plugin/go.d/modules/isc_dhcpd/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package isc_dhcpd
src/go/plugin/go.d/modules/isc_dhcpd/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package isc_dhcpd
6
7 import (
src/go/plugin/go.d/modules/isc_dhcpd/isc_dhcpd.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package isc_dhcpd
6
7 import (
src/go/plugin/go.d/modules/isc_dhcpd/isc_dhcpd_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package isc_dhcpd
6
7 import (
src/go/plugin/go.d/modules/isc_dhcpd/metadata.yaml
+1 -1
@@ -35,7 +35,7 @@ modules:
35 description: ""
36 multi_instance: true
37 supported_platforms:
38 - include: []
38 + include: [Linux, BSD]
39 exclude: []
40 setup:
41 prerequisites:
src/go/plugin/go.d/modules/isc_dhcpd/parse.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package isc_dhcpd
6
7 import (
src/go/plugin/go.d/modules/litespeed/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package litespeed
6
7 import "github.com/netdata/netdata/go/plugins/plugin/go.d/agent/module"
src/go/plugin/go.d/modules/litespeed/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package litespeed
6
7 import (
src/go/plugin/go.d/modules/litespeed/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package litespeed
src/go/plugin/go.d/modules/litespeed/litespeed.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package litespeed
6
7 import (
src/go/plugin/go.d/modules/litespeed/litespeed_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package litespeed
6
7 import (
src/go/plugin/go.d/modules/litespeed/metadata.yaml
+1 -1
@@ -25,7 +25,7 @@ modules:
25 metrics_description: "Examine Litespeed metrics for insights into web server operations. Analyze request rates, response times, and error rates for efficient web service delivery."
26 method_description: "The collector uses the statistics under /tmp/lshttpd to gather the metrics."
27 supported_platforms:
28 - include: []
28 + include: [Linux, BSD]
29 exclude: []
30 multi_instance: false
31 additional_permissions:
src/go/plugin/go.d/modules/logind/charts.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package logind
6
src/go/plugin/go.d/modules/logind/collect.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package logind
6
src/go/plugin/go.d/modules/logind/connection.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package logind
6
src/go/plugin/go.d/modules/logind/logind.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package logind
6
src/go/plugin/go.d/modules/logind/logind_test.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package logind
6
src/go/plugin/go.d/modules/logind/metadata.yaml
+1 -1
@@ -25,7 +25,7 @@ modules:
25 This collector monitors number of sessions and users as reported by the `org.freedesktop.login1` DBus API.
26 method_description: ""
27 supported_platforms:
28 - include: []
28 + include: [Linux]
29 exclude: []
30 multi_instance: true
31 additional_permissions:
src/go/plugin/go.d/modules/lvm/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || netbsd
4 +
5 package lvm
6
7 import (
src/go/plugin/go.d/modules/lvm/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || netbsd
4 +
5 package lvm
6
7 import (
src/go/plugin/go.d/modules/lvm/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package lvm
src/go/plugin/go.d/modules/lvm/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || netbsd
4 +
5 package lvm
6
7 import (
src/go/plugin/go.d/modules/lvm/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || netbsd
4 +
5 package lvm
6
7 import (
src/go/plugin/go.d/modules/lvm/lvm.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || netbsd
4 +
5 package lvm
6
7 import (
src/go/plugin/go.d/modules/lvm/lvm_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || netbsd
4 +
5 package lvm
6
7 import (
src/go/plugin/go.d/modules/lvm/metadata.yaml
+1 -1
@@ -28,7 +28,7 @@ modules:
28 This approach eliminates the need to use `sudo`, improving security and potentially simplifying permission management.
29 method_description: ""
30 supported_platforms:
31 - include: []
31 + include: [Linux, NetBSD]
32 exclude: []
33 multi_instance: false
34 additional_permissions:
src/go/plugin/go.d/modules/megacli/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/collect_bbu.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/collect_phys_drives.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package megacli
src/go/plugin/go.d/modules/megacli/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/megacli.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/megacli_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package megacli
6
7 import (
src/go/plugin/go.d/modules/megacli/metadata.yaml
+1 -1
@@ -33,7 +33,7 @@ modules:
33 - `megacli -AdpBbuCmd -aAll -NoLog`
34 method_description: ""
35 supported_platforms:
36 - include: []
36 + include: [Linux, BSD]
37 exclude: []
38 multi_instance: false
39 additional_permissions:
src/go/plugin/go.d/modules/nsd/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly || darwin
4 +
5 package nsd
6
7 import (
src/go/plugin/go.d/modules/nsd/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly || darwin
4 +
5 package nsd
6
7 import (
src/go/plugin/go.d/modules/nsd/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package nsd
src/go/plugin/go.d/modules/nsd/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly || darwin
4 +
5 package nsd
6
7 import (
src/go/plugin/go.d/modules/nsd/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly || darwin
4 +
5 package nsd
6
7 import (
src/go/plugin/go.d/modules/nsd/metadata.yaml
+8 -8
@@ -15,7 +15,7 @@ modules:
15 - dns
16 related_resources:
17 integrations:
18 - list: []
18 + list: [ ]
19 info_provided_to_referring_integrations:
20 description: ""
21 most_popular: false
@@ -32,8 +32,8 @@ modules:
32 - `nsd-control stats_noreset`
33 method_description: ""
34 supported_platforms:
35 - include: []
36 - exclude: []
35 + include: [ Linux, BSD, macOS ]
36 + exclude: [ ]
37 multi_instance: false
38 additional_permissions:
39 description: ""
@@ -46,7 +46,7 @@ modules:
46 description: ""
47 setup:
48 prerequisites:
49 - list: []
49 + list: [ ]
50 configuration:
51 file:
52 name: go.d/nsd.conf
@@ -78,18 +78,18 @@ modules:
78 update_every: 5 # Collect logical volume statistics every 5 seconds
79 troubleshooting:
80 problems:
81 - list: []
82 - alerts: []
81 + list: [ ]
82 + alerts: [ ]
83 metrics:
84 folding:
85 title: Metrics
86 enabled: false
87 description: ""
88 - availability: []
88 + availability: [ ]
89 scopes:
90 - name: global
91 description: These metrics refer to the the entire monitored application.
92 - labels: []
92 + labels: [ ]
93 metrics:
94 - name: nsd.queries
95 description: Queries
src/go/plugin/go.d/modules/nsd/nsd.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly || darwin
4 +
5 package nsd
6
7 import (
src/go/plugin/go.d/modules/nsd/nsd_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly || darwin
4 +
5 package nsd
6
7 import (
src/go/plugin/go.d/modules/nsd/stats_counters.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly || darwin
4 +
5 package nsd
6
7 // Docs: https://nsd.docs.nlnetlabs.nl/en/latest/manpages/nsd-control.html?highlight=elapsed#statistics-counters
src/go/plugin/go.d/modules/nvme/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package nvme
6
7 import (
src/go/plugin/go.d/modules/nvme/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package nvme
6
7 import (
src/go/plugin/go.d/modules/nvme/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package nvme
src/go/plugin/go.d/modules/nvme/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package nvme
6
7 import (
src/go/plugin/go.d/modules/nvme/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package nvme
6
7 import (
src/go/plugin/go.d/modules/nvme/metadata.yaml
+1 -1
@@ -27,7 +27,7 @@ modules:
27 This approach eliminates the need to use `sudo`, improving security and potentially simplifying permission management.
28 method_description: ""
29 supported_platforms:
30 - include: []
30 + include: [Linux, BSD]
31 exclude: []
32 multi_instance: true
33 additional_permissions:
src/go/plugin/go.d/modules/nvme/nvme.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package nvme
6
7 import (
src/go/plugin/go.d/modules/nvme/nvme_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package nvme
6
7 import (
src/go/plugin/go.d/modules/sensors/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package sensors
6
7 import (
src/go/plugin/go.d/modules/sensors/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package sensors
6
7 import (
src/go/plugin/go.d/modules/sensors/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package sensors
src/go/plugin/go.d/modules/sensors/metadata.yaml
+1 -1
@@ -43,7 +43,7 @@ modules:
43 - Intrusion
44 method_description: ""
45 supported_platforms:
46 - include: []
46 + include: [Linux]
47 exclude: []
48 multi_instance: false
49 additional_permissions:
src/go/plugin/go.d/modules/sensors/sensors.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package sensors
6
7 import (
src/go/plugin/go.d/modules/sensors/sensors_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package sensors
6
7 import (
src/go/plugin/go.d/modules/smartctl/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/smartctl/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/smartctl/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package smartctl
src/go/plugin/go.d/modules/smartctl/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/smartctl/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/smartctl/metadata.yaml
+1 -1
@@ -34,7 +34,7 @@ modules:
34 - `smartctl --json --all {deviceName} --device {deviceType} --nocheck {powerMode}`
35 method_description: ""
36 supported_platforms:
37 - include: []
37 + include: [Linux, BSD]
38 exclude: []
39 multi_instance: false
40 additional_permissions:
src/go/plugin/go.d/modules/smartctl/scan.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/smartctl/smart_device.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/smartctl/smartctl.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/smartctl/smartctl_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package smartctl
6
7 import (
src/go/plugin/go.d/modules/storcli/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import (
src/go/plugin/go.d/modules/storcli/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import "fmt"
src/go/plugin/go.d/modules/storcli/collect_controllers.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import (
src/go/plugin/go.d/modules/storcli/collect_drives.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import (
src/go/plugin/go.d/modules/storcli/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package storcli
src/go/plugin/go.d/modules/storcli/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import (
src/go/plugin/go.d/modules/storcli/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import (
src/go/plugin/go.d/modules/storcli/metadata.yaml
+1 -1
@@ -33,7 +33,7 @@ modules:
33 - `storcli /cALL/eALL/sALL show all J nolog`
34 method_description: ""
35 supported_platforms:
36 - include: []
36 + include: [Linux, BSD]
37 exclude: []
38 multi_instance: false
39 additional_permissions:
src/go/plugin/go.d/modules/storcli/storcli.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import (
src/go/plugin/go.d/modules/storcli/storcli_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package storcli
6
7 import (
src/go/plugin/go.d/modules/systemdunits/charts.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/systemdunits/client.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/systemdunits/collect.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/systemdunits/collect_unit_files.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/systemdunits/collect_units.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/systemdunits/init.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/systemdunits/systemdunits.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/systemdunits/systemdunits_test.go
-1
@@ -1,7 +1,6 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 //go:build linux
4 -// +build linux
4
5 package systemdunits
6
src/go/plugin/go.d/modules/w1sensor/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package w1sensor
6
7 import (
src/go/plugin/go.d/modules/w1sensor/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package w1sensor
6
7 import (
src/go/plugin/go.d/modules/w1sensor/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package w1sensor
src/go/plugin/go.d/modules/w1sensor/w1sensor.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package w1sensor
6
7 import (
src/go/plugin/go.d/modules/w1sensor/w1sensor_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux
4 +
5 package w1sensor
6
7 import (
src/go/plugin/go.d/modules/zfspool/charts.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 import (
src/go/plugin/go.d/modules/zfspool/collect.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 var zpoolHealthStates = []string{
src/go/plugin/go.d/modules/zfspool/collect_zpool_list.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 import (
src/go/plugin/go.d/modules/zfspool/collect_zpool_list_vdev.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 import (
src/go/plugin/go.d/modules/zfspool/doc.go new
+3
@@ -0,0 +1,3 @@
1 +// SPDX-License-Identifier: GPL-3.0-or-later
2 +
3 +package zfspool
src/go/plugin/go.d/modules/zfspool/exec.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 import (
src/go/plugin/go.d/modules/zfspool/init.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 import (
src/go/plugin/go.d/modules/zfspool/metadata.yaml
+1 -1
@@ -28,7 +28,7 @@ modules:
28 tool [zpool](https://openzfs.github.io/openzfs-docs/man/master/8/zpool-list.8.html).
29 method_description: ""
30 supported_platforms:
31 - include: []
31 + include: [Linux, BSD]
32 exclude: []
33 multi_instance: false
34 additional_permissions:
src/go/plugin/go.d/modules/zfspool/zfspool.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 import (
src/go/plugin/go.d/modules/zfspool/zfspool_test.go
+2
@@ -1,5 +1,7 @@
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 +//go:build linux || freebsd || openbsd || netbsd || dragonfly
4 +
5 package zfspool
6
7 import (