diff options
author | Daniel Hodges <hodges@uber.com> | 2020-02-20 05:36:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 11:36:33 +0100 |
commit | ec6214138801d80045e916479a1f8297c40de8e3 (patch) | |
tree | c71787ad5060284be50ebce5e6445d587304ddeb /CHANGELOG.md | |
parent | b40954dce598577413d93ce32cc005b57c6371bb (diff) | |
download | prometheus_node_collector-ec6214138801d80045e916479a1f8297c40de8e3.tar.bz2 prometheus_node_collector-ec6214138801d80045e916479a1f8297c40de8e3.tar.xz prometheus_node_collector-ec6214138801d80045e916479a1f8297c40de8e3.zip |
Fix num cpu (#1561)
* add a map of profilers to CPUids
`runtime.NumCPU()` returns the number of CPUs that the process can run
on. This number does not necessarily correlate to CPU ids if the
affinity mask of the process is set.
This change maintains the current behavior as default, but also allows
the user to specify a range of CPUids to use instead.
The CPU id is stored as the value of a map keyed on the profiler
object's address.
Signed-off-by: Joe Damato <jdamato@fastly.com>
Signed-off-by: Daniel Hodges <hodges.daniel.scott@gmail.com>
Signed-off-by: Daniel Hodges <hodges@uber.com>
Co-authored-by: jdamato-fsly <55214354+jdamato-fsly@users.noreply.github.com>
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f017b57..68022ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -14,6 +14,7 @@ | |||
14 | 14 | ||
15 | ### Changes | 15 | ### Changes |
16 | 16 | ||
17 | * [ENHANCEMENT] Add `--collector.perf.cpus` to allow setting the CPU list for perf stats. | ||
17 | * [CHANGE] Add `--collector.netdev.device-whitelist`. #1279 | 18 | * [CHANGE] Add `--collector.netdev.device-whitelist`. #1279 |
18 | * [CHANGE] Refactor mdadm collector #1403 | 19 | * [CHANGE] Refactor mdadm collector #1403 |
19 | * [CHANGE] Add `mountaddr` label to NFS metrics. #1417 | 20 | * [CHANGE] Add `mountaddr` label to NFS metrics. #1417 |