Skip to content

Commit

Permalink
Remove role label usage (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson authored Oct 4, 2023
1 parent e9a71bb commit 845dfad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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]

### Removed

- Remove role label usage instead of relying on `kube_node_role`` metric.

## [2.136.0] - 2023-10-04

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ spec:
annotations:
description: '{{`Etcd has no leader.`}}'
opsrecipe: etcd-has-no-leader/
expr: etcd_server_has_leader{role=~"master|control-plane", cluster_type="management_cluster", provider!~"eks"} == 0
expr: etcd_server_has_leader{cluster_type="management_cluster", provider!~"eks"} == 0
for: 5m
labels:
area: kaas
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
annotations:
description: '{{`Management cluster {{ $labels.cluster_id }} has less than 3 nodes.`}}'
opsrecipe: management-cluster-less-than-three-workers/
expr: sum(kubelet_node_name{cluster_type="management_cluster", role="worker"}) < 3
expr: sum(kubelet_node_name{cluster_type="management_cluster"} * on (node) kube_node_role{role="worker"}) < 3
for: 1h
labels:
area: kaas
Expand Down

0 comments on commit 845dfad

Please sign in to comment.