node_exporter icon indicating copy to clipboard operation
node_exporter copied to clipboard

CPU Model metrics

Open saeed-mcu opened this issue 3 months ago • 1 comments

Hi,

I would like to monitor the CPU model information for all CPU sockets on a system using node_exporter.

For example, on a multi-socket server, I would like to be able to identify the CPU model associated with each socket, such as:

  • Socket 0 → Intel Xeon ...
  • Socket 1 → Intel Xeon ...

I could not find a node_exporter metric that exposes this information. I also checked for metrics such as node_cpu_info, but this metric does not exist in my node_exporter installation.

Could you please clarify:

  1. Is there currently a node_exporter metric that exposes the CPU model/name for each CPU socket?
  2. If it exists, what is the metric name?
  3. How can this metric/collector be enabled?
  4. If node_exporter does not currently expose CPU model information, is there a reason why this information is not provided as a metric?
  5. Would it be possible to consider adding such a metric/collector in the future?

node exporter version

/usr/local/bin/node_exporter --version
node_exporter, version 1.11.1 (branch: HEAD, revision: 0dd664dece3f8319f6bec5a221acd2c7ad13a23d)
  build user:       root@3d8697c83dd8
  build date:       20260407-15:45:19
  go version:       go1.26.1
  platform:         linux/amd64
  tags:             unknown

node exporter options:

ExecStart=/usr/local/bin/node_exporter \
    '--collector.systemd' \
'--collector.textfile' \
    '--collector.textfile.directory=/var/lib/node_exporter' \
    '--log.level=info' \
    '--log.format=logfmt' \
    '--web.listen-address=0.0.0.0:9100' \
    '--web.telemetry-path=/metrics'

saeed-mcu avatar Sep 04 '26 21:09 saeed-mcu

It exists but is off by default. Start node_exporter with --collector.cpu.info and you get node_cpu_info with package and model_name labels, so something like count by (package, model_name) (node_cpu_info) shows the model per socket.

cvas22 avatar Nov 12 '26 00:11 cvas22