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

Temperature #15

Open
iwex opened this issue May 16, 2021 · 4 comments
Open

Temperature #15

iwex opened this issue May 16, 2021 · 4 comments

Comments

@iwex
Copy link

iwex commented May 16, 2021

On your screenshots, you have temperature blocks. How to add it?

@retzkek
Copy link
Owner

retzkek commented May 17, 2021

On Linux, CPU temperatures are collected by the node exporter; I use the following query: node_hwmon_temp_celsius{chip="platform_coretemp_0"} (chip label will vary).

Disk temperatures take some more work, I use the smartmom textfile exporter, which queries smartctl and puts metrics into a file that is then included by the node exporter. I use the query smartmon_attr_raw_value{name="temperature_celsius"}

@heiko7even
Copy link

@retzkek - Could you provide a tutorial on how you did this? :-)

@retzkek
Copy link
Owner

retzkek commented May 26, 2021

See documentation here: https://github.com/prometheus/node_exporter#textfile-collector

You run the texfile exporter on some frequency (I put it in a cron job running every five minutes), writing to a file in a directory that you configure node_exporter to read.

@retzkek
Copy link
Owner

retzkek commented Jul 7, 2021

Note that on Ubuntu > 20.04 (maybe earlier) you can just sudo apt install prometheus-node-exporter, which will include the SMART monitoring by default.

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