Hi All,
I have requirement for node exporter dashboard to display metrics for multiple instances : (will select multiple instances from dropdown and it will display data for multiple nodes )
Quick CPU / Mem / Disk row of Node Exporter Dashboard :
It has CPU Busy, SysLoad (5m ) ,RAM Used , SWAP Used , Root FS Used , CPU Cores and Uptime as panels
I able to fetch the required things for RAM Used , SWAP Used, Uptime :
But CPU Busy, SysLoad (*m ) CPU Cores doesnt work
I tried with sum by and grouping with instance still no luck :
Here are the queries
CPU Busy :
(((count(count(node_cpu_seconds_total{instance=~"$instance",job=~"$job"}) by (cpu))) - avg(sum by (mode)(irate(node_cpu_seconds_total{mode=โidleโ,instance=~"$instance",job=~"$job"}[5m])))) * 100) / count(count(node_cpu_seconds_total{instance=~"$instance",job=~"$job"}) by (cpu))
Sys Load (5 m)
avg(node_load5{instance=~"$instance",job=~"$job"}) / count(count(node_cpu_seconds_total{instance=~"$instance",job=~"$job"}) by (cpu)) * 100
CPU Core
count(count(node_cpu_seconds_total{instance=~"$instance",job=~"$job"}) by (cpu))
Please suggest .or if anyone has worked on the similar requirement let me know