Skip to content

Commit

Permalink
Fix node role label (#465)
Browse files Browse the repository at this point in the history
* Fix node role label

* Remove service-level changes

* Update service-level.jsonnet
  • Loading branch information
QuentinBisson authored Mar 18, 2024
1 parent b130fc0 commit 51c6bee
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
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]

### Fixed

- Fix all dashboards that were only supporting only role=master to now support role=~control-plane|master.

## [3.8.4] - 2024-03-11

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1432,7 +1432,7 @@
"uid": "PBFA97CFB590B2093"
},
"exemplar": true,
"expr": "100 * (1 - avg(irate(node_cpu_seconds_total{mode=\"idle\",cluster_id=\"$cluster_id\",node!=\"\"}[$__rate_interval])) by (node)) and on (node) kube_node_role{cluster_id=\"$cluster_id\",role=\"master\"}",
"expr": "100 * (1 - avg(irate(node_cpu_seconds_total{mode=\"idle\",cluster_id=\"$cluster_id\",node!=\"\"}[$__rate_interval])) by (node)) and on (node) kube_node_role{cluster_id=\"$cluster_id\",role=~\"control-plane|master\"}",
"interval": "",
"legendFormat": "{{ node }}",
"refId": "A"
Expand Down Expand Up @@ -1527,7 +1527,7 @@
"uid": "PBFA97CFB590B2093"
},
"exemplar": true,
"expr": "(1 - sum(node_memory_MemAvailable_bytes{cluster_id=\"$cluster_id\",node!=\"\"}) by (node) / sum(node_memory_MemTotal_bytes{cluster_id=\"$cluster_id\",node!=\"\"}) by (node)) and on (node) kube_node_role{cluster_id=\"$cluster_id\",role=\"master\"}",
"expr": "(1 - sum(node_memory_MemAvailable_bytes{cluster_id=\"$cluster_id\",node!=\"\"}) by (node) / sum(node_memory_MemTotal_bytes{cluster_id=\"$cluster_id\",node!=\"\"}) by (node)) and on (node) kube_node_role{cluster_id=\"$cluster_id\",role=~\"control-plane|master\"}",
"interval": "",
"legendFormat": "{{ node }}",
"refId": "A"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"expr": "process_resident_memory_bytes{cluster_id=\"$cluster_id\",role=\"master\", job=\"$cluster_id-prometheus/etcd-$cluster_id/0\"}",
"expr": "process_resident_memory_bytes{cluster_id=\"$cluster_id\",role=~\"control-plane|master\", job=\"$cluster_id-prometheus/etcd-$cluster_id/0\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{instance}} Resident Memory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"datasource": {
"uid": "$datasource"
},
"expr": "count(kube_node_role{cluster_id=\"$cluster\",organization=~\"$organization\",role=\"master\"})",
"expr": "count(kube_node_role{cluster_id=\"$cluster\",organization=~\"$organization\",role=~\"control-plane|master\"})",
"interval": "",
"legendFormat": "",
"refId": "A"
Expand Down Expand Up @@ -268,7 +268,7 @@
"datasource": {
"uid": "$datasource"
},
"expr": "count(kube_node_role{cluster_id=\"$cluster\",organization=~\"$organization\",role=\"master\"})",
"expr": "count(kube_node_role{cluster_id=\"$cluster\",organization=~\"$organization\",role=~\"control-plane|master\"})",
"interval": "",
"legendFormat": "Control plane nodes",
"refId": "A"
Expand Down
4 changes: 2 additions & 2 deletions helm/dashboards/dashboards/kvm/public/kvm-machine-usage.json
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
"targets": [
{
"exemplar": true,
"expr": "sum(up{app=\"kubelet\", cluster_type=\"management_cluster\",role=\"master\"})",
"expr": "sum(up{app=\"kubelet\", cluster_type=\"management_cluster\",role=~\"control-plane|master\"})",
"format": "time_series",
"instant": true,
"interval": "",
Expand Down Expand Up @@ -2442,7 +2442,7 @@
"pluginVersion": "8.0.3",
"targets": [
{
"expr": "count(up{app=\"kubelet\", cluster_type=\"workload_cluster\",role=\"master\",cluster_id=\"$cluster\"})",
"expr": "count(up{app=\"kubelet\", cluster_type=\"workload_cluster\",role=~\"control-plane|master\",cluster_id=\"$cluster\"})",
"format": "time_series",
"instant": true,
"intervalFactor": 2,
Expand Down

0 comments on commit 51c6bee

Please sign in to comment.