From 6a3f7018e0cd90c6f9cdd5495ed4aa1423fbb080 Mon Sep 17 00:00:00 2001 From: wizzdom Date: Fri, 28 Feb 2025 02:40:16 +0000 Subject: [PATCH] grafana: add dynamic prometheus datasource --- jobs/monitoring/grafana.hcl | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/jobs/monitoring/grafana.hcl b/jobs/monitoring/grafana.hcl index 2d76bc1..5a981ae 100644 --- a/jobs/monitoring/grafana.hcl +++ b/jobs/monitoring/grafana.hcl @@ -48,11 +48,11 @@ job "grafana" { ports = ["http"] volumes = [ - "/storage/nomad/${NOMAD_JOB_NAME}/${NOMAD_TASK_NAME}:/var/lib/grafana" + "/storage/nomad/${NOMAD_JOB_NAME}/${NOMAD_TASK_NAME}:/var/lib/grafana", + "local/datasources.yml:/etc/grafana/provisioning/datasources/datasources.yml" ] } - template { data = <