Skip to content

Commit

Permalink
fix: calculate average CPU util (#905)
Browse files Browse the repository at this point in the history
With this, the average CPU utilization across clusters is calculated instead of listing the CPU util per cluster.
This fixes the visuals of the panel and brings it in line with the other panels in the row, which all display an average.
  • Loading branch information
morremeyer authored Oct 17, 2024
1 parent a3affb3 commit 0348e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboards/resources/multi-cluster.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ local var = g.dashboard.variable;
statPanel(
'CPU Utilisation',
'none',
'cluster:node_cpu:ratio_rate5m'
'sum(cluster:node_cpu:ratio_rate5m) / count(cluster:node_cpu:ratio_rate5m)'
),

statPanel(
Expand Down

0 comments on commit 0348e09

Please sign in to comment.