node exporter: cpu count metric?

5,944 views
Skip to first unread message

Kris Budde

unread,
Jun 19, 2019, 3:48:19 AM6/19/19
to Prometheus Users
Hi,

I was looking for the number of cpus for each node as some metrics are more meaningfull if compared to number of processors.
e.g. cpu load or context switches.

I know I can calculate the number of cpu cores, e.g. "count(count(node_cpu_seconds_total{instance=~"$node"}) without (mode,instance,job)) without (cpu) "

Is there really no metric? In this case I'm going to create a feature request.

Best regards

Ben Kochie

unread,
Jun 19, 2019, 5:13:03 AM6/19/19
to Kris Budde, Prometheus Users
No, it is explicit that there is no count metric, as it can be derived.

See the example recording rule:


--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/e7ca8f6a-e54a-4f9b-8c51-2ea62673d0a7%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages