Dominik Honnef
d827db8e17
Better error handling when collecting CPU temps
...
Log why we couldn't collect the temperature, and set metric to NaN if
the CPU should support temperature collection but had an error.
2017-01-05 15:19:56 +01:00
Dominik Honnef
782eaee100
Collect CPU temperatures on FreeBSD
2017-01-05 06:17:16 +01:00
Dominik Honnef
732dd67729
Fix build of cpu_freebsd.go
...
Corrects an incorrect merge in 8e50b80
2017-01-05 03:16:51 +01:00
Johannes 'fish' Ziemke
8e50b80d12
Convert remaining collectors to use ConstMetrics
2017-01-03 14:11:10 +01:00
Dominik Honnef
f0adcd163d
Implement CPU collector on FreeBSD without cgo
2016-12-29 04:29:52 +01:00
Kai Storbeck
dcfbf40dbf
change caps of the constant
2016-04-20 00:22:47 +02:00
Kai Storbeck
365e688cec
gofmt, a typo, and an unintended change crept in
2016-04-20 00:19:16 +02:00
Kai Storbeck
aac89c524e
This should fix it.
2016-04-20 00:08:26 +02:00
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.
2016-02-17 15:39:21 +01:00
Brian Brazil
2f0d697f8c
Do a make format run.
2015-12-18 14:08:52 +00:00
Kirk Russell
89875cefe8
converted freebsd cpu metrics to seconds
2015-09-26 20:58:47 -04:00
Matthias Rampke
2d0d72b97d
Add license headers to all code files.
2015-09-26 17:44:39 +02:00
Siavash Safi
dddb273dfc
Fix some error messages.
2015-07-14 13:58:54 +04:30
Siavash Safi
f8ede82488
cpu: Fix build constraints.
2015-07-14 13:58:53 +04:30
Siavash Safi
462b708742
cpu: Code cleanup.
2015-07-14 13:58:50 +04:30
Siavash Safi
f7563fe7a2
Remove config from collectors.
2015-07-14 13:58:48 +04:30
Siavash Safi
a10ab2c102
Check caller's euid and egid when accessing /dev/mem on FreeBSD.
2015-07-14 13:58:47 +04:30
Siavash Safi
13d5f969a5
Removed freebsd build constraints from source code.
2015-07-14 13:58:46 +04:30
Siavash Safi
23bb9c44b9
Add cpu collector for FreeBSD.
2015-07-14 13:58:43 +04:30