Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get the cpu temperature via this exporter? #1377

Closed
LizZzxx opened this issue Jun 13, 2019 · 2 comments
Closed

How to get the cpu temperature via this exporter? #1377

LizZzxx opened this issue Jun 13, 2019 · 2 comments

Comments

@LizZzxx
Copy link

LizZzxx commented Jun 13, 2019

Hi,
How can I get the cpu temperature? Will you show me the clause on the grafana dashboard?
I have set the "node_hwmon_temp_celsius{instance="$node"}" via the grafana dashboard, but get
no data.
Best wishes!

@discordianfish
Copy link
Member

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.

@perlun
Copy link

perlun commented Jan 2, 2020

@LizZzxx From what I can tell, the node_hwmon_temp_celsius is not always available. I only have it on some of my nodes.

Given the info in #333, it seems like this info is deduced via the /sys/class/hwmon filesystem, and interestingly enough, this directory is empty on one of the machines that are missing. On one of them that works, there are hwmon0, hwmon1 and hwmon2 entries in there.

More info on the kernel-level hwmon sysfs interface: https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface (low-level) and https://how-to.fandom.com/wiki/How_to_configure_the_Linux_kernel/drivers/hwmon (contains a list of supported chips). I guess the case could be that your machine(s) where you don't get any data doesn't have a supported hwmon driver in the kernel you're using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants