temp

Reference for the `temp` collector.

temp · collector · run nanook doc temp for the same content in your terminal.

CPU and system temperatures from hardware sensors.

Metrics

MetricKindUnitDescription
temp.celsiusnumeric°Ctemperature reading in degrees Celsius. Labels: sensor.
temp.maxnumeric°Cmaximum reported temperature in degrees Celsius. Labels: sensor.
temp.criticalnumeric°Ccritical-threshold temperature in degrees Celsius. Labels: sensor.

Examples

Collect every 10s

[[collectors]]
name = "temp"
interval = 10

CPU running hot

[[alerts]]
expr = "temp.celsius > 85"
count = 6
channel = "ops"
body = "{{ labels.sensor }} at {{ value }}°C"

Approaching critical threshold

[[alerts]]
expr = "temp.celsius > temp.critical - 5"
count = 3
channel = "oncall"