node_exporter icon indicating copy to clipboard operation
node_exporter copied to clipboard

mixin: Fix cpu usage graph

Open discordianfish opened this issue 1 year ago • 3 comments

discordianfish avatar Sep 03 '24 11:09 discordianfish

See https://github.com/prometheus/node_exporter/pull/1448/files#r1741178030 for the normalization for the number of cores.

beorn7 avatar Sep 03 '24 18:09 beorn7

So this is a makeshift setup: My laptop with 16 "11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz" cores, running the Promtheus unit tests, using the original query from the mixin. As you can see, it nicely goes up all the way to 1.

image

beorn7 avatar Sep 03 '24 18:09 beorn7

And in case that was misunderstood: The query is meant to go up to 1 for the stacked result. So on a 16 core system, every single number in the query output would only be up to 1/16th indeed.

beorn7 avatar Sep 03 '24 18:09 beorn7