Skip to content

Commit

Permalink
fix: count nodes by kube_node_info, instead of node-exporter jobs (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
uhthomas authored May 26, 2023
1 parent 1f42074 commit 363eb9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboards/k8s-views-global.json
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "count(up{job=\"node-exporter\"})",
"expr": "count(count by (node) (kube_node_info))",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -570,7 +570,7 @@
"uid": "${datasource}"
},
"exemplar": true,
"expr": "count(up{job=\"node-exporter\"})",
"expr": "count(count by (node) (kube_node_info))",
"hide": false,
"interval": "",
"legendFormat": "Nodes",
Expand Down

0 comments on commit 363eb9e

Please sign in to comment.