Browse Source

Update go to 1.17 (#2159)

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
pull/2162/head
Julien Pivotto 3 years ago committed by GitHub
parent
commit
68a6c78c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .circleci/config.yml
  2. 2
      .promu-cgo.yml
  3. 2
      .promu.yml
  4. 1
      collector/arp_linux.go
  5. 1
      collector/bcache_linux.go
  6. 1
      collector/bonding_linux.go
  7. 1
      collector/boot_time_bsd.go
  8. 1
      collector/boot_time_openbsd_amd64.go
  9. 4
      collector/boot_time_solaris.go
  10. 1
      collector/btrfs_linux.go
  11. 1
      collector/btrfs_linux_test.go
  12. 4
      collector/buddyinfo.go
  13. 1
      collector/conntrack_linux.go
  14. 1
      collector/cpu_common.go
  15. 1
      collector/cpu_darwin.go
  16. 1
      collector/cpu_dragonfly.go
  17. 1
      collector/cpu_dragonfly_test.go
  18. 1
      collector/cpu_freebsd.go
  19. 1
      collector/cpu_linux.go
  20. 1
      collector/cpu_linux_test.go
  21. 4
      collector/cpu_openbsd.go
  22. 1
      collector/cpu_openbsd_amd64.go
  23. 4
      collector/cpu_solaris.go
  24. 1
      collector/cpufreq_linux.go
  25. 4
      collector/cpufreq_solaris.go
  26. 1
      collector/devstat_dragonfly.go
  27. 1
      collector/devstat_freebsd.go
  28. 1
      collector/diskstats_common.go
  29. 1
      collector/diskstats_darwin.go
  30. 1
      collector/diskstats_linux.go
  31. 4
      collector/diskstats_openbsd.go
  32. 1
      collector/diskstats_openbsd_amd64.go
  33. 1
      collector/drbd_linux.go
  34. 1
      collector/edac_linux.go
  35. 1
      collector/entropy_linux.go
  36. 1
      collector/ethtool_linux.go
  37. 1
      collector/exec_bsd.go
  38. 4
      collector/fibrechannel_linux.go
  39. 1
      collector/filefd_linux.go
  40. 1
      collector/filesystem_bsd.go
  41. 1
      collector/filesystem_common.go
  42. 1
      collector/filesystem_freebsd.go
  43. 1
      collector/filesystem_linux.go
  44. 4
      collector/filesystem_openbsd_amd64.go
  45. 1
      collector/hwmon_linux.go
  46. 4
      collector/infiniband_linux.go
  47. 1
      collector/interrupts_common.go
  48. 1
      collector/interrupts_linux.go
  49. 4
      collector/interrupts_openbsd.go
  50. 1
      collector/interrupts_openbsd_amd64.go
  51. 1
      collector/ipvs_linux.go
  52. 1
      collector/ksmd_linux.go
  53. 1
      collector/kvm_bsd.go
  54. 1
      collector/lnstat_linux.go
  55. 1
      collector/loadavg.go
  56. 1
      collector/loadavg_bsd.go
  57. 1
      collector/loadavg_linux.go
  58. 1
      collector/loadavg_solaris.go
  59. 1
      collector/logind_linux.go
  60. 1
      collector/mdadm_linux.go
  61. 1
      collector/meminfo.go
  62. 1
      collector/meminfo_darwin.go
  63. 1
      collector/meminfo_linux.go
  64. 1
      collector/meminfo_numa_linux.go
  65. 4
      collector/meminfo_openbsd.go
  66. 1
      collector/meminfo_openbsd_amd64.go
  67. 1
      collector/memory_bsd.go
  68. 1
      collector/mountstats_linux.go
  69. 4
      collector/netclass_linux.go
  70. 1
      collector/netdev_bsd.go
  71. 1
      collector/netdev_darwin.go
  72. 1
      collector/netdev_linux.go
  73. 4
      collector/netdev_openbsd.go
  74. 1
      collector/netdev_openbsd_amd64.go
  75. 1
      collector/netstat_linux.go
  76. 1
      collector/network_route_linux.go
  77. 1
      collector/nfs_linux.go
  78. 1
      collector/nfsd_linux.go
  79. 1
      collector/ntp.go
  80. 4
      collector/nvme_linux.go
  81. 16
      collector/perf_linux.go
  82. 1
      collector/perf_linux_test.go
  83. 4
      collector/powersupplyclass.go
  84. 1
      collector/pressure_linux.go
  85. 1
      collector/processes_linux.go
  86. 1
      collector/processes_linux_test.go
  87. 1
      collector/qdisc_linux.go
  88. 1
      collector/runit.go
  89. 1
      collector/schedstat_linux.go
  90. 1
      collector/sockstat_linux.go
  91. 1
      collector/softnet_linux.go
  92. 1
      collector/stat_linux.go
  93. 1
      collector/supervisord.go
  94. 1
      collector/sysctl_bsd.go
  95. 1
      collector/systemd_linux.go
  96. 1
      collector/tapestats_linux.go
  97. 1
      collector/tcpstat_linux.go
  98. 1
      collector/textfile.go
  99. 1
      collector/thermal_zone_linux.go
  100. 1
      collector/time.go
  101. Some files were not shown because too many files have changed in this diff Show More

2
.circleci/config.yml

@ -9,7 +9,7 @@ executors:
# should also be updated.
golang:
docker:
- image: circleci/golang:1.16
- image: circleci/golang:1.17
jobs:
test:

2
.promu-cgo.yml

@ -1,7 +1,7 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu.yml should also be updated.
version: 1.16
version: 1.17
cgo: true
repository:
path: github.com/prometheus/node_exporter

2
.promu.yml

@ -1,7 +1,7 @@
go:
# Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated.
version: 1.16
version: 1.17
repository:
path: github.com/prometheus/node_exporter
build:

1
collector/arp_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noarp
// +build !noarp
package collector

1
collector/bcache_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nobcache
// +build !nobcache
package collector

1
collector/bonding_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nobonding
// +build !nobonding
package collector

1
collector/boot_time_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (freebsd || dragonfly || (openbsd && !amd64) || netbsd || darwin) && !noboottime
// +build freebsd dragonfly openbsd,!amd64 netbsd darwin
// +build !noboottime

1
collector/boot_time_openbsd_amd64.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noboottime
// +build !noboottime
package collector

4
collector/boot_time_solaris.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build solaris
// +build !noboottime
//go:build solaris && !noboottime
// +build solaris,!noboottime
package collector

1
collector/btrfs_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nobtrfs
// +build !nobtrfs
package collector

1
collector/btrfs_linux_test.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nobtrfs
// +build !nobtrfs
package collector

4
collector/buddyinfo.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build !nobuddyinfo
// +build !netbsd
//go:build !nobuddyinfo && !netbsd
// +build !nobuddyinfo,!netbsd
package collector

1
collector/conntrack_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noconntrack
// +build !noconntrack
package collector

1
collector/cpu_common.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

1
collector/cpu_darwin.go

@ -14,6 +14,7 @@
// Based on gopsutil/cpu/cpu_darwin_cgo.go @ ae251eb which is licensed under
// BSD. See https://github.com/shirou/gopsutil/blob/master/LICENSE for details.
//go:build !nocpu
// +build !nocpu
package collector

1
collector/cpu_dragonfly.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

1
collector/cpu_dragonfly_test.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

1
collector/cpu_freebsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

1
collector/cpu_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

1
collector/cpu_linux_test.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

4
collector/cpu_openbsd.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build openbsd,!amd64
// +build !nocpu
//go:build openbsd && !amd64 && !nocpu
// +build openbsd,!amd64,!nocpu
package collector

1
collector/cpu_openbsd_amd64.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

4
collector/cpu_solaris.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build solaris
// +build !nocpu
//go:build solaris && !nocpu
// +build solaris,!nocpu
package collector

1
collector/cpufreq_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nocpu
// +build !nocpu
package collector

4
collector/cpufreq_solaris.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build solaris
// +build !nocpu
//go:build solaris && !nocpu
// +build solaris,!nocpu
package collector

1
collector/devstat_dragonfly.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nodevstat
// +build !nodevstat
package collector

1
collector/devstat_freebsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nodevstat
// +build !nodevstat
package collector

1
collector/diskstats_common.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nodiskstats && (openbsd || linux || darwin)
// +build !nodiskstats
// +build openbsd linux darwin

1
collector/diskstats_darwin.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nodiskstats
// +build !nodiskstats
package collector

1
collector/diskstats_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nodiskstats
// +build !nodiskstats
package collector

4
collector/diskstats_openbsd.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build openbsd,!amd64
// +build !nodiskstats
//go:build openbsd && !amd64 && !nodiskstats
// +build openbsd,!amd64,!nodiskstats
package collector

1
collector/diskstats_openbsd_amd64.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nodiskstats
// +build !nodiskstats
package collector

1
collector/drbd_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nodrbd
// +build !nodrbd
package collector

1
collector/edac_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noedac
// +build !noedac
package collector

1
collector/entropy_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noentropy
// +build !noentropy
package collector

1
collector/ethtool_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noethtool
// +build !noethtool
// The hard work of collecting data from the kernel via the ethtool interfaces is done by

1
collector/exec_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (freebsd || dragonfly) && !noexec
// +build freebsd dragonfly
// +build !noexec

4
collector/fibrechannel_linux.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build linux
// +build !nofibrechannel
//go:build linux && !nofibrechannel
// +build linux,!nofibrechannel
package collector

1
collector/filefd_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nofilefd
// +build !nofilefd
package collector

1
collector/filesystem_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build ((openbsd && !amd64) || darwin || dragonfly) && !nofilesystem
// +build openbsd,!amd64 darwin dragonfly
// +build !nofilesystem

1
collector/filesystem_common.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nofilesystem && (linux || freebsd || openbsd || darwin || dragonfly)
// +build !nofilesystem
// +build linux freebsd openbsd darwin dragonfly

1
collector/filesystem_freebsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nofilesystem
// +build !nofilesystem
package collector

1
collector/filesystem_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nofilesystem
// +build !nofilesystem
package collector

4
collector/filesystem_openbsd_amd64.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build openbsd
// +build !nofilesystem
//go:build openbsd && !nofilesystem
// +build openbsd,!nofilesystem
package collector

1
collector/hwmon_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nohwmon
// +build !nohwmon
package collector

4
collector/infiniband_linux.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build linux
// +build !noinfiniband
//go:build linux && !noinfiniband
// +build linux,!noinfiniband
package collector

1
collector/interrupts_common.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (linux || openbsd) && !nointerrupts
// +build linux openbsd
// +build !nointerrupts

1
collector/interrupts_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nointerrupts
// +build !nointerrupts
package collector

4
collector/interrupts_openbsd.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build openbsd,!amd64
// +build !nointerrupts
//go:build openbsd && !amd64 && !nointerrupts
// +build openbsd,!amd64,!nointerrupts
package collector

1
collector/interrupts_openbsd_amd64.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nointerrupts
// +build !nointerrupts
package collector

1
collector/ipvs_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noipvs
// +build !noipvs
package collector

1
collector/ksmd_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noksmd
// +build !noksmd
package collector

1
collector/kvm_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nokvm && (freebsd || dragonfly)
// +build !nokvm
// +build freebsd dragonfly

1
collector/lnstat_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nolnstat
// +build !nolnstat
package collector

1
collector/loadavg.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && !noloadavg
// +build darwin dragonfly freebsd linux netbsd openbsd solaris
// +build !noloadavg

1
collector/loadavg_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && !noloadavg
// +build darwin dragonfly freebsd netbsd openbsd
// +build !noloadavg

1
collector/loadavg_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noloadavg
// +build !noloadavg
package collector

1
collector/loadavg_solaris.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noloadavg
// +build !noloadavg
package collector

1
collector/logind_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nologind
// +build !nologind
package collector

1
collector/mdadm_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nomdadm
// +build !nomdadm
package collector

1
collector/meminfo.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (darwin || linux || openbsd) && !nomeminfo
// +build darwin linux openbsd
// +build !nomeminfo

1
collector/meminfo_darwin.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nomeminfo
// +build !nomeminfo
package collector

1
collector/meminfo_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nomeminfo
// +build !nomeminfo
package collector

1
collector/meminfo_numa_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nomeminfo_numa
// +build !nomeminfo_numa
package collector

4
collector/meminfo_openbsd.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build openbsd,!amd64
// +build !nomeminfo
//go:build openbsd && !amd64 && !nomeminfo
// +build openbsd,!amd64,!nomeminfo
package collector

1
collector/meminfo_openbsd_amd64.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nomeminfo
// +build !nomeminfo
package collector

1
collector/memory_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (freebsd || dragonfly) && !nomeminfo
// +build freebsd dragonfly
// +build !nomeminfo

1
collector/mountstats_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nomountstats
// +build !nomountstats
package collector

4
collector/netclass_linux.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build !nonetclass
// +build linux
//go:build !nonetclass && linux
// +build !nonetclass,linux
package collector

1
collector/netdev_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonetdev && (freebsd || dragonfly)
// +build !nonetdev
// +build freebsd dragonfly

1
collector/netdev_darwin.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonetdev
// +build !nonetdev
package collector

1
collector/netdev_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonetdev
// +build !nonetdev
package collector

4
collector/netdev_openbsd.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build openbsd,!amd64
// +build !nonetdev
//go:build openbsd && !amd64 && !nonetdev
// +build openbsd,!amd64,!nonetdev
package collector

1
collector/netdev_openbsd_amd64.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonetdev
// +build !nonetdev
package collector

1
collector/netstat_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonetstat
// +build !nonetstat
package collector

1
collector/network_route_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonetworkroute
// +build !nonetworkroute
package collector

1
collector/nfs_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonfs
// +build !nonfs
package collector

1
collector/nfsd_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nonfsd
// +build !nonfsd
package collector

1
collector/ntp.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nontp
// +build !nontp
package collector

4
collector/nvme_linux.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build linux
// +build !nonvme
//go:build linux && !nonvme
// +build linux,!nonvme
package collector

16
collector/perf_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noperf
// +build !noperf
package collector
@ -284,21 +285,30 @@ func NewPerfCollector(logger log.Logger) (Collector, error) {
for _, cpu := range cpus {
// Use -1 to profile all processes on the CPU, see:
// man perf_event_open
hwProf := perf.NewHardwareProfiler(-1, cpu)
hwProf, err := perf.NewHardwareProfiler(-1, cpu)
if err != nil {
return nil, err
}
if err := hwProf.Start(); err != nil {
return nil, err
}
collector.perfHwProfilers[cpu] = &hwProf
collector.hwProfilerCPUMap[&hwProf] = cpu
swProf := perf.NewSoftwareProfiler(-1, cpu)
swProf, err := perf.NewSoftwareProfiler(-1, cpu)
if err != nil {
return nil, err
}
if err := swProf.Start(); err != nil {
return nil, err
}
collector.perfSwProfilers[cpu] = &swProf
collector.swProfilerCPUMap[&swProf] = cpu
cacheProf := perf.NewCacheProfiler(-1, cpu)
cacheProf, err := perf.NewCacheProfiler(-1, cpu)
if err != nil {
return nil, err
}
if err := cacheProf.Start(); err != nil {
return nil, err
}

1
collector/perf_linux_test.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noprocesses
// +build !noprocesses
package collector

4
collector/powersupplyclass.go

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build !nopowersupplyclass
// +build linux
//go:build !nopowersupplyclass && linux
// +build !nopowersupplyclass,linux
package collector

1
collector/pressure_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nopressure
// +build !nopressure
package collector

1
collector/processes_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noprocesses
// +build !noprocesses
package collector

1
collector/processes_linux_test.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noprocesses
// +build !noprocesses
package collector

1
collector/qdisc_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noqdisc
// +build !noqdisc
package collector

1
collector/runit.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !norunit
// +build !norunit
package collector

1
collector/schedstat_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !noshedstat
// +build !noshedstat
package collector

1
collector/sockstat_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nosockstat
// +build !nosockstat
package collector

1
collector/softnet_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nosoftnet
// +build !nosoftnet
package collector

1
collector/stat_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nostat
// +build !nostat
package collector

1
collector/supervisord.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nosupervisord
// +build !nosupervisord
package collector

1
collector/sysctl_bsd.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build (freebsd || dragonfly || openbsd || netbsd || darwin) && cgo
// +build freebsd dragonfly openbsd netbsd darwin
// +build cgo

1
collector/systemd_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nosystemd
// +build !nosystemd
package collector

1
collector/tapestats_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !notapestats
// +build !notapestats
package collector

1
collector/tcpstat_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !notcpstat
// +build !notcpstat
package collector

1
collector/textfile.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !notextfile
// +build !notextfile
package collector

1
collector/thermal_zone_linux.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !nothermalzone
// +build !nothermalzone
package collector

1
collector/time.go

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//go:build !notime
// +build !notime
package collector

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save