diff --git a/roles/prometheus/templates/docker.rules.yml.j2 b/roles/prometheus/templates/docker.rules.yml.j2 index e891b1c..d911698 100644 --- a/roles/prometheus/templates/docker.rules.yml.j2 +++ b/roles/prometheus/templates/docker.rules.yml.j2 @@ -18,7 +18,7 @@ groups: annotations: summary: >- Le container Docker est éteint / tombé - (instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }}) + (container {{ raw('$labels.name') }}) - alert: ContainerFailed expr: sum(increase(docker_container_restart_count[5m])) > 2 @@ -28,7 +28,7 @@ groups: annotations: summary: >- Le container Docker redémarre souvent - (instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }}) + (container {{ raw('$labels.name') }}) - alert: ContainerFailed expr: @@ -44,7 +44,7 @@ groups: annotations: summary: >- Le container Docker utilise beaucoup de CPU - (instance {{ raw('$labels.instance') }}, container {{ raw('$labels.name') }}, - value {{ raw('$value | printf "%.1f"') }}) + (container {{ raw('$labels.name') }}, + valeur {{ raw('$value | printf "%.1f"') }}) ...