Skip to content
Snippets Groups Projects
Commit 4567ce91 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-1715: Configure vector to push logs to loki central

parent 49cc5161
No related branches found
No related tags found
1 merge request!859L2SS-1715: Configure vector to push logs to loki central
...@@ -137,6 +137,20 @@ healthchecks.require_healthy = true ...@@ -137,6 +137,20 @@ healthchecks.require_healthy = true
[sinks.loki.labels] [sinks.loki.labels]
"nomad_*" = '{{ nomad }}' "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] [sources.host_metrics]
type = "host_metrics" type = "host_metrics"
scrape_interval_secs = 10 scrape_interval_secs = 10
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment