job "prometheus" { datacenters = ["dc1", "dc2"] type = "service" constraint { attribute = "${attr.kernel.name}" value = "linux" } group "monitoring" { count = 1 restart { attempts = 2 interval = "30m" delay = "15s" mode = "fail" } ephemeral_disk { size = 300 } network { port "prometheus_ui" { to = 9090 } } task "prometheus" { template { change_mode = "noop" destination = "local/prometheus.yml" data = <