Skip to content
Snippets Groups Projects
Commit c9aa258d authored by Hannes Feldt's avatar Hannes Feldt
Browse files

add logging job

parent 4672fd83
No related branches found
No related tags found
4 merge requests!752Resolve L2SS-1525 "Migrate minio",!751Resolve L2SS-1340 "Deploy monitoring to nomad",!749Resolve L2SS-1342 "Migrate jupyter",!685Resolve L2SS-1340 "Deploy monitoring to 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 ".",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment