Skip to content

Commit

Permalink
Update "Nodes Overview" dashboard to avoid CP doubble count
Browse files Browse the repository at this point in the history
  • Loading branch information
pipo02mix authored Dec 20, 2024
1 parent f701dd7 commit 9622e10
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
"type": "prometheus",
"uid": "$datasource"
},
"expr": "count(kube_node_role{cluster_id=\"$cluster\",organization=~\"$organization\",role=~\"control-plane|master\"})",
"expr": "count(count(kube_node_role{cluster_id=\"$cluster\",organization=~\"$organization\",role=~\"control-plane|master\"}) by (node))",
"interval": "",
"legendFormat": "Control plane nodes",
"refId": "A"
Expand Down

0 comments on commit 9622e10

Please sign in to comment.