Add Linux NUMA "numastat" metrics (#249)
* Add Linux NUMA "numastat" metrics Read the `numastat` metrics from /sys/devices/system/node/node* when reading NUMA meminfo metrics. * Update end-to-end test output. * Add `numastat` metrics as counters. * Add tests for error conditions. * Refactor meminfo numa metrics struct * Refactor meminfoKey into a simple struct of metric data. This makes it easier to pass slices of metrics around. * Refactor tests. * Fixup: Add suggested fixes. * Fixup: More fixes * Add another scanner.Err() return * Add "_total" to counter metrics.
This commit is contained in:
parent
081ecc5db0
commit
c6162312f2
5 changed files with 158 additions and 26 deletions
|
|
@ -0,0 +1,6 @@
|
|||
numa_hit 193460335812
|
||||
numa_miss 12624528
|
||||
numa_foreign 59858623300
|
||||
interleave_hit 57146
|
||||
local_node 193454780853
|
||||
other_node 18179487
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
numa_hit 326720946761
|
||||
numa_miss 59858626709
|
||||
numa_foreign 12624528
|
||||
interleave_hit 57286
|
||||
local_node 326719046550
|
||||
other_node 59860526920
|
||||
Loading…
Add table
Add a link
Reference in a new issue