Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke authored Sep 18, 2022
1 parent efdcabb commit 52b0300
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ for example about OOM events…
```
groups:
- name: host_health
- alert: oom
expr: rate(docker_events{event="oom",kubernetes_namespace="inf"}[1m]) > 0
labels:
routing: slackonly
- alert: Container (Swarm) died/is dying with exit code other than 0
expr: max by (status, container_attributes_com_docker_swarm_service_name, container_attributes_exitcode) (max_over_time(docker_events_container_total{status=~"die|.*oom.*|.*kill.*", container_attributes_exitcode != "0", container_attributes_exitcode != "" }[15m])) > 0
annotations:
link: '{{ $labels.event }} - {{ $labels.env }} - {{ $labels.pod }}'
summary: "Bad Exit code \"{{ $labels.container_attributes_exitcode }}\" for status \"{{ $labels.status }}\" for service \"{{ $labels.container_attributes_com_docker_swarm_service_name }}\""
```

0 comments on commit 52b0300

Please sign in to comment.