Skip to content

Commit

Permalink
fix alerting rules - #368
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Apr 17, 2024
1 parent 7828e26 commit b9778ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/serval/templates/prometheus-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ spec:
- alert: memory-near-limit
annotations:
description: >-
'{{ "{{ $labels.container }}" }} is over 80% memory.'
'{{ "{{ $labels.container }}" }} is over 93% memory for 10 minutes.'
expr: >-
min (container_memory_working_set_bytes{image!="", namespace="{{ .Values.namespace }}", container!="POD" })
by (container, namespace) / on (container, namespace)
min (kube_pod_container_resource_limits{resource="memory", namespace="{{ .Values.namespace }}", container!="POD"})
by (container, namespace) * 100 >= 80
for: 0s
by (container, namespace) * 100 >= 93
for: 10m
labels:
severity: warning
- name: disk
Expand Down

0 comments on commit b9778ee

Please sign in to comment.