From 4567ce91472eaaa45b286fb1ea88f579e0816317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corn=C3=A9=20Lukken?= <lukken@astron.nl> Date: Thu, 14 Mar 2024 09:03:55 +0000 Subject: [PATCH] L2SS-1715: Configure vector to push logs to loki central --- infra/jobs/station/logging.levant.nomad | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/infra/jobs/station/logging.levant.nomad b/infra/jobs/station/logging.levant.nomad index 998c57f41..8c168a318 100644 --- a/infra/jobs/station/logging.levant.nomad +++ b/infra/jobs/station/logging.levant.nomad @@ -137,6 +137,20 @@ healthchecks.require_healthy = true [sinks.loki.labels] "nomad_*" = '{{ nomad }}' +[[ if ne .station "dev" ]] +[sinks.loki_central] + type = "loki" + inputs = [ "nomad-flags" ] + tenant_id = [[.station]] + endpoint = "http://logs.lofar-central.service.consul:3100" + encoding.codec = "json" + healthcheck.enabled = true + remove_label_fields = true + out_of_order_action = "accept" +[sinks.loki_central.labels] + "nomad_*" = '{{ nomad }}' +[[ end ]] + [sources.host_metrics] type = "host_metrics" scrape_interval_secs = 10 -- GitLab