hyperthreading information from default node exporter

61 views
Skip to first unread message

mohan garden

unread,
May 14, 2024, 1:53:17 PM5/14/24
to Prometheus Users
Hi All, 
We have few servers where HT/SMT can be enabled or disabled. the "Threads per core" fields is generally 2  in the output of lscpu or /proc/cpuinfo-

Thread(s) per core:    2
Core(s) per socket:    48


I need to use this metric to normalize data ( example - related to CPU load) when comparing the data to servers having HT disabled.

I noticed that there is a node exporter flag  --collector.cpu.info  which directs node exporter to fetch additional information from the /proc/cpinfo .  but i am unable to see information related to the HT/SMT status of the server.
cpuinfo.png
In code base , i dont see direct reference to the HT metric https://github.com/prometheus/node_exporter/blob/v1.7.0/collector/cpu_linux.go
cpuinfo1.png

Is there any other way which can help me to figure out if HT/SMT is enabled on a server?
Reply all
Reply to author
Forward
0 new messages