Ben Kochie
090957658e
Update logging ( #3097 )
...
Switch from promlog/go-kit to promslog/slog for logging.
* Update Go build to 1.23.
Signed-off-by: Ben Kochie <superq@gmail.com>
2 months ago
Julien Pivotto
68a6c78c0d
Update go to 1.17 ( #2159 )
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
3 years ago
Ben Kochie
3bc9a93c20
Add ErrorLog plumbing to promhttp
...
Fix the error logging of the promhttp handler by connecting it to the
promlog setup.
* Switch to go-kit/log.
* Cleanup CHANGELOG.
Fixes: https://github.com/prometheus/node_exporter/issues/1886
Signed-off-by: Ben Kochie <superq@gmail.com>
4 years ago
Ben Kochie
dfa53f835a
Use Go 1.13 error features
...
* Use `errors.Is()` for unwrapping errors.
* Use `%w` error verb in internal error formatting.
Signed-off-by: Ben Kochie <superq@gmail.com>
5 years ago
Jeffrey Stoke
cb7ab5119a
Fix collectors' build tags
...
Signed-off-by: Jeffrey Stoke <me@arhat.dev>
5 years ago
Ben Kochie
e49a13d0cf
Catch missing schedstat file ( #1641 )
...
Suppres error log noise if schedstat file doesn't exist.
Signed-off-by: Ben Kochie <superq@gmail.com>
5 years ago
Ben Ye
2477c5c67d
switch to go-kit/log ( #1575 )
...
Signed-off-by: yeya24 <yb532204897@gmail.com>
5 years ago
Julian Kornberger
043fecbfd8
Wrap errors in the Go 1.13 way
...
Signed-off-by: Julian Kornberger <jk+github@digineo.de>
5 years ago
Phil Frost
26d4fbdf07
Fix seconds reported by schedstat ( #1426 )
...
Upstream bugfix: https://github.com/prometheus/procfs/pull/191
Signed-off-by: Phil Frost <phil@postmates.com>
5 years ago
Phil Frost
f693a71c06
Scrape CPU latency stats from /proc/schedstat ( #1389 )
...
These are useful as a direct indication of CPU contention and task
scheduler latency.
Handy references:
- https://github.com/torvalds/linux/blob/master/Documentation/scheduler/sched-stats.txt
- https://doc.opensuse.org/documentation/leap/tuning/html/book.sle.tuning/cha.tuning.taskscheduler.html
procfs is updated to pull in the enabling change:
https://github.com/prometheus/procfs/pull/186
Signed-off-by: Phil Frost <phil@postmates.com>
5 years ago