diff --git a/infra/jobs/station/logging.levant.nomad b/infra/jobs/station/logging.levant.nomad index 32b07b203a90f29982356f15eb6cc39c6eaf2ecc..5632e3bb4ccd5e412458c58f5adac139958e4d03 100644 --- a/infra/jobs/station/logging.levant.nomad +++ b/infra/jobs/station/logging.levant.nomad @@ -121,6 +121,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