From ac9b7f1c08917013a4b29be51ffc1c3cb95da238 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 1 Nov 2026 16:26:33 -0500 Subject: [PATCH 1/2] services/nomad/monitoring/vector: use nomad service discovery templating in the yamlencode() doesn't seem to work, so we must stoop to using text templates --- services/nomad/monitoring/vector.nomad | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/services/nomad/monitoring/vector.nomad b/services/nomad/monitoring/vector.nomad index 489fc93..e99403b 100644 --- a/services/nomad/monitoring/vector.nomad +++ b/services/nomad/monitoring/vector.nomad @@ -50,7 +50,18 @@ job "vector" { } env { - NOMAD_HOST = "${node.unique.name}" + NOMAD_HOST = "${node.unique.name}" + VECTOR_DANGEROUSLY_ALLOW_ENV_VAR_INTERPOLATION = "true" + } + + template { + data = < Date: Mon, 2 Nov 2026 23:01:46 -0500 Subject: [PATCH 2/2] services/nomad/monitoring/prometheus.yml: minor updates --- services/nomad/monitoring/prometheus.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/nomad/monitoring/prometheus.yml b/services/nomad/monitoring/prometheus.yml index 33211c1..c7e8095 100644 --- a/services/nomad/monitoring/prometheus.yml +++ b/services/nomad/monitoring/prometheus.yml @@ -37,7 +37,7 @@ scrape_configs: - docs.voidlinux.org - infradocs.voidlinux.org - repo-fi.voidlinux.org - - repo-us.voidlinux.org + - repo-de.voidlinux.org - sources.voidlinux.org - terraform.voidlinux.org - voidlinux.org @@ -127,7 +127,7 @@ scrape_configs: namespace: '{{ . }}' # {{ end }} relabel_configs: - # keep only services with the 'prometheus_enable=true' tag + # keep only services with the 'prometheus_enable' tag - source_labels: ['__meta_nomad_tags'] regex: '.*,prometheus_enable,.*' action: keep