Linux CPU: Cache CPU metrics

Cache CPU metrics to avoid counters (ie iowait) jumping backwards.

Fixes: https://github.com/prometheus/node_exporter/issues/1686

Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
Ben Kochie 2020-05-23 21:46:54 +02:00
commit 3565316d7e
No known key found for this signature in database
GPG key ID: C646B23C9E3245F1
3 changed files with 86 additions and 3 deletions

View file

@ -3,7 +3,7 @@
* [CHANGE]
* [FEATURE]
* [ENHANCEMENT]
* [BUGFIX]
* [BUGFIX] Linux CPU: Cache CPU metrics to make them monotonically increasing #1711
## 1.0.0-rc.1 / 2020-05-14