job "prometheus" { datacenters = ["aperture"] group "prometheus" { network { port "http" { static = 9090 } } service { name = "prometheus" port = "http" } task "prometheus" { driver = "docker" config { image = "quay.io/prometheus/prometheus" ports = ["http"] volumes = [ "/storage/nomad/${NOMAD_JOB_NAME}/${NOMAD_TASK_NAME}:/prometheus" ] args = [ "--config.file=$${NOMAD_TASK_DIR}/prometheus.yml", "--log.level=info", "--storage.tsdb.retention.time=90d", "--storage.tsdb.path=/prometheus", "--web.console.libraries=/usr/share/prometheus/console_libraries", "--web.console.templates=/usr/share/prometheus/consoles" ] } template { data = <