Skip to content

Commit

Permalink
Merge pull request #35 from evilmartians/0.6.1-extra-alerts
Browse files Browse the repository at this point in the history
extra-alerts: Fix typo
  • Loading branch information
deponian authored Apr 12, 2024
2 parents 26202ef + 425f5c8 commit 329375c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions charts/extra-alerts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 0.6.1 (12.04.2024)
- Fix typo

# 0.6.0 (12.04.2024)
- Disable PodMemoryUsageLimit alert for "kube-system" namespace

Expand Down
2 changes: 1 addition & 1 deletion charts/extra-alerts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: v2
name: extra-alerts
description: A Helm chart with some tuned extra PrometheusRules from kube-prometheus-stack chart
appVersion: "58.0.0" # kube-prometheus-stack version
version: 0.6.0
version: 0.6.1
maintainers:
- name: Ilya Cherepanov
email: deponian@evilmartians.com
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ spec:
description: 'Pod: {{`{{`}} $labels.pod {{`}}`}}, namespace: {{`{{`}} $labels.namespace {{`}}`}} memory usage {{`{{`}} printf "%.2f" $value {{`}}`}}% more than 85% of its limit for 1h'
summary: Pod uses more than 85% of its memory limit.
expr: |-
sum(label_replace(container_memory_working_set_bytes{container!="", namespace!="kube-system", "pod", "$1", "pod", "(.*)")) by (pod, namespace)
sum(label_replace(container_memory_working_set_bytes{container!="", namespace!="kube-system"}, "pod", "$1", "pod", "(.*)")) by (pod, namespace)
/
sum(kube_pod_container_resource_limits{resource="memory", namespace!="kube-system"}) by (pod,namespace) * 100 > 85
for: 60m
Expand Down

0 comments on commit 329375c

Please sign in to comment.