From 17c0f2db2a5a0ff8ded3750bbbe7fdcb4d81c538 Mon Sep 17 00:00:00 2001 From: Petru Paler Date: Wed, 22 Oct 2025 14:29:57 +0100 Subject: [PATCH] Move prometheus to zippy. --- services/prometheus.hcl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/prometheus.hcl b/services/prometheus.hcl index e02b941..004f206 100644 --- a/services/prometheus.hcl +++ b/services/prometheus.hcl @@ -10,6 +10,13 @@ job "prometheus" { group "monitoring" { count = 1 + # Run on primary storage node (zippy) for local disk performance + # TODO: move to fractal once it's converted to NixOS (spinning disks OK for time-series data) + constraint { + attribute = "${meta.storage_role}" + value = "primary" + } + network { port "http" { #host_network = "tailscale" @@ -37,7 +44,7 @@ job "prometheus" { volumes = [ "local/alerts.yml:/prometheus/alerts.yml", "local/prometheus.yml:/prometheus/prometheus.yml", - "/data/compute/appdata/prometheus:/opt/prometheus", + "/data/services/prometheus:/opt/prometheus", ] }