diff --git a/nomad/metrics/prometheus.nomad b/nomad/metrics/prometheus.nomad index ae6b3de..3b4295e 100644 --- a/nomad/metrics/prometheus.nomad +++ b/nomad/metrics/prometheus.nomad @@ -65,7 +65,7 @@ job "prometheus" { ports = ["web"] args = [ "--config.file=/etc/prometheus/config/prometheus.yml", - "--storage.tsdb.path=/prometheus", + "--storage.tsdb.path=${NOMAD_ALLOC_DIR}/data/tsdb", "--web.listen-address=0.0.0.0:9090", "--web.console.libraries=/usr/share/prometheus/console_libraries", "--web.console.templates=/usr/share/prometheus/consoles",