Dominik Honnef
732dd67729
Fix build of cpu_freebsd.go
...
Corrects an incorrect merge in 8e50b80
8 years ago
Johannes 'fish' Ziemke
8e50b80d12
Convert remaining collectors to use ConstMetrics
8 years ago
Dominik Honnef
f0adcd163d
Implement CPU collector on FreeBSD without cgo
8 years ago
Kai Storbeck
dcfbf40dbf
change caps of the constant
9 years ago
Kai Storbeck
365e688cec
gofmt, a typo, and an unintended change crept in
9 years ago
Kai Storbeck
aac89c524e
This should fix it.
9 years ago
Christian Schwarz
1fc84e2fb6
Re-implement CPU metrics collection through sysctls.
...
This removes the requirement to run `node_exporter` as root or with read
access to `/dev/kmem` in order to get CPU usage statistics.
Once FreeBSD adds a macro for the `kern.cp_times` sysctl, the
`setupSysctlMIBs()` function should be replaced by usage of the macro.
9 years ago
Brian Brazil
2f0d697f8c
Do a make format run.
9 years ago
Kirk Russell
89875cefe8
converted freebsd cpu metrics to seconds
9 years ago
Matthias Rampke
2d0d72b97d
Add license headers to all code files.
9 years ago
Siavash Safi
dddb273dfc
Fix some error messages.
9 years ago
Siavash Safi
f8ede82488
cpu: Fix build constraints.
9 years ago
Siavash Safi
462b708742
cpu: Code cleanup.
9 years ago
Siavash Safi
f7563fe7a2
Remove config from collectors.
9 years ago
Siavash Safi
a10ab2c102
Check caller's euid and egid when accessing /dev/mem on FreeBSD.
9 years ago
Siavash Safi
13d5f969a5
Removed freebsd build constraints from source code.
9 years ago
Siavash Safi
23bb9c44b9
Add cpu collector for FreeBSD.
9 years ago