7.2.1.Nomad job failed
Nomad job {{ $labels.job }} had {{ $value | printf "%.0f" }} new failed allocation(s) in the last 10 minutes.
# The job summary gauges only grow: a failed allocation stays counted until the job is garbage collected, so the rule alerts on new ones.
- alert: NomadJobFailed
expr: 'delta(nomad_nomad_job_summary_failed[10m]) > 0'
for: 0m
labels:
severity: warning
annotations:
summary: Nomad job failed (instance {{ $labels.instance }})
description: "Nomad job {{ $labels.job }} had {{ $value | printf \"%.0f\" }} new failed allocation(s) in the last 10 minutes.\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"

