This commit is contained in:
parent
6775d9ecde
commit
9d18ebb7f1
2 changed files with 38 additions and 37 deletions
|
@ -33,6 +33,7 @@
|
|||
- alerts.rules.yml
|
||||
- django.rules.yml
|
||||
|
||||
|
||||
- name: Configure Prometheus alerts
|
||||
template:
|
||||
src: "{{ item }}.j2"
|
||||
|
|
|
@ -11,7 +11,7 @@ groups:
|
|||
rules:
|
||||
|
||||
- alert: ContainerDown
|
||||
expr: docker_container_running_state
|
||||
expr: docker_container_running_state != 1
|
||||
for: 0m
|
||||
labels:
|
||||
severity: critical
|
||||
|
@ -28,7 +28,7 @@ groups:
|
|||
annotations:
|
||||
summary: >-
|
||||
Container Docker redémarre souvent
|
||||
(instance raw('{{ $labels.instance') }}, container {{ raw('$labels.name') }})
|
||||
(instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }})
|
||||
|
||||
- alert: ContainerFailed
|
||||
expr:
|
||||
|
@ -45,6 +45,6 @@ groups:
|
|||
summary: >-
|
||||
Container Docker utilise beaucoup de CPU
|
||||
(instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }},
|
||||
value {{ raw('$value | printf "%.1f"'') }})
|
||||
value {{ raw('$value | printf "%.1f"') }})
|
||||
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue