Skip to content

Commit

Permalink
[kube-prometheus-stack] fix missing pod label for etcdInsufficientMem…
Browse files Browse the repository at this point in the history
…bers

When the pod label is not in the without block, the alert is firing with 'etcd cluster kube-etcd: insufficient members (0).'
  • Loading branch information
sebastiangaiser committed Nov 21, 2023
1 parent 49e3c3a commit fb7f042
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 54.1.0
version: 54.1.1
appVersion: v0.69.1
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
{{- end }}
description: 'etcd cluster "{{`{{`}} $labels.job {{`}}`}}": insufficient members ({{`{{`}} $value {{`}}`}}).'
summary: etcd cluster has insufficient number of members.
expr: sum(up{job=~".*etcd.*"} == bool 1) without (instance) < ((count(up{job=~".*etcd.*"}) without (instance) + 1) / 2)
expr: sum(up{job=~".*etcd.*"} == bool 1) without (instance,pod) < ((count(up{job=~".*etcd.*"}) without (instance,pod) + 1) / 2)
for: 3m
{{- with .Values.defaultRules.keepFiringFor }}
keep_firing_for: "{{ . }}"
Expand Down

0 comments on commit fb7f042

Please sign in to comment.