prometheus: add nomadbatch error alert

This commit is contained in:
vincent 2023-09-14 20:26:16 +02:00
parent 29a6f1ae1a
commit 989453a16a

View File

@ -160,6 +160,12 @@ groups:
annotations:
summary: Nomad job queued (instance {{ $labels.instance }})
description: "Nomad job queued\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"
- alert: NomadBatchError
expr: nomad_nomad_job_summary_failed{parent_id=~".+"}>0
labels:
severity: warning
annotations:
summary: Nomad batch {{ $labels.parent_id}} error
EOH