From 0e5181fcf0d31f29becb92e86db94ea0205950a6 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 6 Sep 2022 11:15:14 -0700 Subject: [PATCH] Move prometheus tsdb data to emphemeral disk --- nomad/metrics/prometheus.nomad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",