Installation Prometheus-postgres-exporter #53
2 changed files with 38 additions and 37 deletions
|
@ -33,6 +33,7 @@
|
||||||
- alerts.rules.yml
|
- alerts.rules.yml
|
||||||
- django.rules.yml
|
- django.rules.yml
|
||||||
|
|
||||||
|
|
||||||
- name: Configure Prometheus alerts
|
- name: Configure Prometheus alerts
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}.j2"
|
src: "{{ item }}.j2"
|
||||||
|
|
|
@ -11,7 +11,7 @@ groups:
|
||||||
rules:
|
rules:
|
||||||
|
|
||||||
- alert: ContainerDown
|
- alert: ContainerDown
|
||||||
expr: docker_container_running_state
|
expr: docker_container_running_state != 1
|
||||||
for: 0m
|
for: 0m
|
||||||
labels:
|
labels:
|
||||||
severity: critical
|
severity: critical
|
||||||
|
@ -28,7 +28,7 @@ groups:
|
||||||
annotations:
|
annotations:
|
||||||
summary: >-
|
summary: >-
|
||||||
Container Docker redémarre souvent
|
Container Docker redémarre souvent
|
||||||
(instance raw('{{ $labels.instance') }}, container {{ raw('$labels.name') }})
|
(instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }})
|
||||||
pz2891 marked this conversation as resolved
Outdated
|
|||||||
|
|
||||||
- alert: ContainerFailed
|
- alert: ContainerFailed
|
||||||
expr:
|
expr:
|
||||||
|
@ -45,6 +45,6 @@ groups:
|
||||||
summary: >-
|
summary: >-
|
||||||
Container Docker utilise beaucoup de CPU
|
Container Docker utilise beaucoup de CPU
|
||||||
pz2891 marked this conversation as resolved
Outdated
otthorn
commented
Faudrait peut être faire des phrases. C'est comme si on disait "Server utilise beaucoup de CPU", c'est pas syntaxiquement correct. Faudrait peut être faire des phrases.
C'est comme si on disait "Server utilise beaucoup de CPU", c'est pas syntaxiquement correct.
"Le container Docker utilise beaucoup de CPU" peut etre ?
|
|||||||
(instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }},
|
(instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }},
|
||||||
pz2891 marked this conversation as resolved
Outdated
jeltz
commented
Idem (instance superflue). Idem (instance superflue).
|
|||||||
value {{ raw('$value | printf "%.1f"'') }})
|
value {{ raw('$value | printf "%.1f"') }})
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in a new issue
Idem (instance superflue).