add alert nomad job queue

This commit is contained in:
vincent 2022-09-18 14:48:28 +02:00
parent 24ae45a3fd
commit 29c395395e

View File

@ -120,6 +120,16 @@ groups:
annotations: annotations:
summary: Nomad job lost (instance {{ $labels.instance }}) summary: Nomad job lost (instance {{ $labels.instance }})
description: "Nomad job lost\n VALUE = {{ $value }}\n LABELS = {{ $labels }}" description: "Nomad job lost\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: NomadJobQueued
expr: nomad_nomad_job_summary_queued > 0
for: 2m
labels:
severity: warning
annotations:
summary: Nomad job queued (instance {{ $labels.instance }})
description: "Nomad job queued\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
EOH EOH
} }