prometheus / node_exporter

Exporter for machine metrics
https://prometheus.io/
Apache License 2.0
11.06k stars 2.34k forks source link

Node exporter not picking up sensors output and hence sensors metrics are not exported #2986

Open Aman1994 opened 6 months ago

Aman1994 commented 6 months ago

We are running node_exporter in one of our linux machines and wanted to check the hwmon metrics. But, for some reason sensors data is not being exported.

The VM has a ASUS motherboard. Here is the output of dmidecode

Base Board Information
    Manufacturer: ASUSTeK COMPUTER INC.
    Product Name: PRIME X670-P WIFI
    Version: Rev 1.xx

Host operating system: output of uname -a

4.18.0-513.18.1.el8_9.x86_64 #1 SMP Thu Feb 1 03:51:05 EST 2024 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 1.3.1 (branch: tarball, revision: 4.el8) build user:
build date: 20220128 go version: go1.16.12 platform: linux/amd64

node_exporter command line flags

node_exporter --web.listen-address=xx.xx.xx.xx:75622 --collector.textfile.directory=/var/lib/node_exporter/textfile_collector --collector.mountstats --collector.systemd --collector.hwmon

Are you running node_exporter in Docker?

No

What did you expect to see?

I expected to see the node_hwmon_fan_rpm and many other metrics but i don't actually see it.

Running sensors command directly on the VM does show me the FAN and temparature

sensors
enp8s0-pci-0800
Adapter: PCI adapter
PHY Temperature:  +51.0°C  
MAC Temperature:  +51.0°C  

nouveau-pci-0100
Adapter: PCI adapter
fan1:         993 RPM
temp1:        +30.0°C  (high = +95.0°C, hyst =  +3.0°C)
                       (crit = +105.0°C, hyst =  +5.0°C)
                       (emerg = +135.0°C, hyst =  +5.0°C)
discordianfish commented 5 months ago

Anything in the log?