alexesDev / nomad-exporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nomad Prometheus Exporter

Exported Metrics

Metric Meaning Labels
nomad_task_status Get status of job job, taskgroup, task

Job status codes

	statuses := map[string]float64{
		"running":  1,
		"pending":  2,
		"complete": 3,
		"failed":   4,
		"lost":     5,
	}

Query Examples

count(nomad_task_status == 2) # count of pending tasks
count(nomad_task_status != 1) # count of non-running tasks

Nomad Client Env Varables

  • The Nomad client environment variables can be found in the client source
  • ADDR=:5577
  • RECORD_COMPLETED

Docker

docker run --rm --network host -it alexes/nomad-exporter

About

License:The Unlicense


Languages

Language:Go 84.0%Language:Dockerfile 16.0%