node_exporter icon indicating copy to clipboard operation
node_exporter copied to clipboard

Missing powersupplyclass metrics

Open GioDoesntKnowCode opened this issue 3 years ago • 1 comments

Host operating system: 5.4.0-110-generic #124-Ubuntu SMP

node_exporter version: 1.3.1

Are you running node_exporter in Docker: Yes

Issue:

I am trying to get the metrics of the power supply class, and for some reason it isn't being exported. When I tried this on Windows it worked, and the log had 74 references when I CTRL+F "Power", but on Ubunut & Mac I only get 3.

What did you expect to see?

Power supply logs

What did you see instead?

Nothing

The log for ubuntu, and a screenshot of the working log on windows are below, it is the same version of node_exporter on both systems. I am not sure what is missing, I hope someone can assist me, Thanks in advance!

System specs:

CPU family: 6 Model: 15 Model name: Intel(R) Xeon(R) CPU Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Ubuntu Version: 5.4.0-110-generic #124-Ubuntu SMP

More Info:

Node Exporter Log: Node exporter log.txt Screenshot of windows log: Screenshot 2022-06-06 at 15 37 22

GioDoesntKnowCode avatar Jun 09 '22 17:06 GioDoesntKnowCode

It's probably a kernel version thing, we just expose what we find in /sys/class/power_supply

discordianfish avatar Jul 05 '22 17:07 discordianfish