Skip to content

Commit

Permalink
Update "Nodes Overview" dashboard to avoid CP doubble count (#650)
Browse files Browse the repository at this point in the history
* Etcd count dashboard fix with exported namespace

* Add changelog entry

* Add label_replace to work with new and old label name

* Update "Nodes Overview" dashboard to avoid CP doubble count

* Add changelog entry
  • Loading branch information
pipo02mix authored Dec 23, 2024
1 parent f701dd7 commit 8358f29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Fixed nodes overview dashboard to avoid master duplicating numbers.

## [3.26.1] - 2024-11-12

### Added
Expand Down
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 8358f29

Please sign in to comment.