Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
wirwolf committed Feb 13, 2024
1 parent ee5b49f commit 7446fd9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/kube-monitoring/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: kube-monitoring
description: More rules for base kubernetes metrics
type: application
version: 0.3.0
appVersion: 0.3.0
version: 0.3.1
appVersion: 0.3.1
icon: https://raw.githubusercontent.com/SomeBlackMagic/helm-charts/master/charts/kube-monitoring/kube-monitoring.png
keywords:
- kube
Expand Down
2 changes: 1 addition & 1 deletion charts/kube-monitoring/ci/default-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ prometheus:
foo: bar

grafana:
enabled: true
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ spec:
#https://stackoverflow.com/a/69340335
- alert: FailedEvictedPods
annotations:
summary: {{`Failed Evicted pod: {{ $labels.pod }}`}}
description: {{`Pod {{ $labels.namespace }}/{{ $labels.pod }} has been Evicted. Please check reason and remove evicted pod`}}
summary: "{{`Failed Evicted pod: {{ $labels.pod }}`}}"
description: "{{`Pod {{ $labels.namespace }}/{{ $labels.pod }} has been Evicted. Please check reason and remove evicted pod`}}"
expr: sum by(namespace, pod) (kube_pod_status_phase{phase="Failed"} > 0 and on(namespace, pod) kube_pod_status_reason{reason="Evicted"} > 0) > 0
for: 10m
labels:
Expand All @@ -67,8 +67,8 @@ spec:
#https://stackoverflow.com/a/69340335
- alert: TooManyEvictedPodsOnNamespace
annotations:
summary: {{`Too many Failed Evicted Pods in {{ $labels.namespace }}`}}
description: {{`Too many Failed Evicted Pods: {{ $value }} on namespace {{ $labels.namespace }}`}}
summary: "{{`Too many Failed Evicted Pods in {{ $labels.namespace }}`}}"
description: "{{`Too many Failed Evicted Pods: {{ $value }} on namespace {{ $labels.namespace }}`}}"
expr: sum by(namespace) (kube_pod_status_reason{reason="Evicted"}) >= {{ $.Values.prometheus.rule.alerts.tooManyEvictedPods.threshold }}
labels:
severity: "{{ $.Values.prometheus.rule.alerts.tooManyEvictedPods.severity }}"
Expand Down
4 changes: 3 additions & 1 deletion charts/kube-monitoring/validate.sh
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
helm install --debug --dry-run app -f ci/default-values.yaml .
#helm lint .
helm template . --debug --values ci/default-values.yaml
#helm install --debug --values ci/default-values.yaml --dry-run app .

0 comments on commit 7446fd9

Please # to comment.