retzkek / chiamon

Example Chia monitoring stack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Temperature

iwex opened this issue · comments

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

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"}

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

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.

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.