From c9aa258d94dcf928fa267e52438ee2c43986b0d8 Mon Sep 17 00:00:00 2001
From: Hannes Feldt <feldt@astron.nl>
Date: Fri, 15 Sep 2023 10:34:54 +0200
Subject: [PATCH] add logging job

---
 infra/jobs/station/logging.levant.nomad | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/infra/jobs/station/logging.levant.nomad b/infra/jobs/station/logging.levant.nomad
index 241fb14a8..36f54b098 100644
--- a/infra/jobs/station/logging.levant.nomad
+++ b/infra/jobs/station/logging.levant.nomad
@@ -61,9 +61,8 @@ job "log-scraping" {
                 destination     = "local/vector.toml"
                 change_mode     = "signal"
                 change_signal   = "SIGHUP"
-                # overriding the delimiters to [[ ]] to avoid conflicts with Vector's native templating, which also uses {{ }}
-                left_delimiter  = "[["
-                right_delimiter = "]]"
+                left_delimiter  = "##"
+                right_delimiter = "##"
                 data            = <<EOH
           data_dir = "alloc/data/vector/"
           [api]
@@ -79,7 +78,7 @@ job "log-scraping" {
           [sinks.loki]
             type = "loki"
             inputs = ["logs"]
-            endpoint = "http://[[ range service "loki" ]][[ .Address ]]:[[ .Port ]][[ end ]]"
+            endpoint = "http://## range service "loki" #### .Address ##:## .Port #### end ##"
             encoding.codec = "json"
             healthcheck.enabled = true
             # since . is used by Vector to denote a parent-child relationship, and Nomad's Docker labels contain ".",
-- 
GitLab