From 5d3e3cce87eff9617141c91c91558efaf3b47de8 Mon Sep 17 00:00:00 2001
From: Hannes Feldt <feldt@astron.nl>
Date: Wed, 20 Mar 2024 14:24:40 +0000
Subject: [PATCH] Update 2 files

- /infra/jobs/station/monitoring.levant.nomad
- /infra/jobs/station/logging.levant.nomad
---
 infra/jobs/station/logging.levant.nomad    | 3 ++-
 infra/jobs/station/monitoring.levant.nomad | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/infra/jobs/station/logging.levant.nomad b/infra/jobs/station/logging.levant.nomad
index 21a33ad59..f6af99dc3 100644
--- a/infra/jobs/station/logging.levant.nomad
+++ b/infra/jobs/station/logging.levant.nomad
@@ -131,13 +131,14 @@ healthchecks.require_healthy = true
 [sinks.loki_central]
   type                 = "loki"
   inputs               = [ "nomad-flags" ]
-  tenant_id            = "[[.station]]"
+  tenant_id            = "lofar"
   endpoint             = "http://logs.service.lofar-central.consul:3100"
   encoding.codec       = "json"
   healthcheck.enabled  = true
   remove_label_fields  = true
   out_of_order_action  = "accept"
 [sinks.loki_central.labels]
+  "station"            = '[[.station]]'
   "nomad_*"            = '{{ nomad }}'
 [[ end ]]
 
diff --git a/infra/jobs/station/monitoring.levant.nomad b/infra/jobs/station/monitoring.levant.nomad
index aeeed3e00..8d2ec8410 100644
--- a/infra/jobs/station/monitoring.levant.nomad
+++ b/infra/jobs/station/monitoring.levant.nomad
@@ -228,7 +228,7 @@ postgres.service.consul:5432:grafana:postgres:password
           scrape_timeout: 10s
 [[ if ne .station "dev" ]]
         remote_write:
-          - url: http://monitor.control.lofar:9009/api/v1/push
+          - url: http://metrics.service.lofar-central.consul:9009/api/v1/push
             write_relabel_configs:
               - target_label: host
                 replacement: [[.station]]
-- 
GitLab