Move prometheus tsdb data to emphemeral disk

This commit is contained in:
IamTheFij 2022-09-06 11:15:14 -07:00
parent fa5f9e28e6
commit 0e5181fcf0

View File

@ -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",