Skip to main content
APA
Sponsored byCAST AI — Kubernetes cost optimizationBetter Stack — Uptime monitoring and log managementVictoriaMetrics — Fast, open-source time series database and drop-in Prometheus replacement.

Nomad logoNomad Prometheus Alert Rules

4 Prometheus alerting rules for Nomad.Exported via Embedded exporter.These rules cover critical and warning conditions — copy and paste the YAML into your Prometheus configuration.

⚠️

Alert thresholds depend on the nature of your applications. Some queries may have arbitrary tolerance thresholds. Building an efficient monitoring platform takes time. 😉

7.2.Nomad logoEmbedded exporter(4 rules)

wget https://raw.githubusercontent.com/samber/awesome-prometheus-alerts/refs/heads/master/dist/rules/nomad/embedded-exporter.yml
warning

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 }}"
warning

7.2.2.Nomad job lost

Nomad job {{ $labels.job }} had {{ $value | printf "%.0f" }} new lost allocation(s) in the last 10 minutes.

- alert: NomadJobLost
  expr: 'delta(nomad_nomad_job_summary_lost[10m]) > 0'
  for: 0m
  labels:
    severity: warning
  annotations:
    summary: Nomad job lost (instance {{ $labels.instance }})
    description: "Nomad job {{ $labels.job }} had {{ $value | printf \"%.0f\" }} new lost allocation(s) in the last 10 minutes.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

7.2.3.Nomad job queued

Nomad job {{ $labels.job }} has {{ $value }} queued allocations.

- 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 {{ $labels.job }} has {{ $value }} queued allocations.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"
warning

7.2.4.Nomad blocked evaluation

Nomad has {{ $value }} blocked evaluations. The cluster may lack resources to place allocations.

- alert: NomadBlockedEvaluation
  expr: 'nomad_nomad_blocked_evals_total_blocked > 0'
  for: 0m
  labels:
    severity: warning
  annotations:
    summary: Nomad blocked evaluation (instance {{ $labels.instance }})
    description: "Nomad has {{ $value }} blocked evaluations. The cluster may lack resources to place allocations.\n  VALUE = {{ $value }}\n  LABELS = {{ $labels }}"

Share your alerting rules

Your production alerts can make this collection better. Share your rule files in one command: only Prometheus rule files and PrometheusRule resources are uploaded, while prometheus.yml, alertmanager.yml and other configurations are skipped, as they often contain credentials.

npx awesome-prometheus-alerts share /etc/prometheus/rules

Add --dry-run to preview what would be sent.