Skip to content
Snippets Groups Projects
Commit 3b50e1c7 authored by Jan David Mol's avatar Jan David Mol
Browse files

Merge branch 'restart-vector' into 'master'

L2SS-1635: Fix vector

See merge request !796
parents 60e30e52 c4095fb4
No related branches found
No related tags found
1 merge request!796L2SS-1635: Fix vector
......@@ -15,7 +15,7 @@ job "log-scraping" {
attempts = 3
interval = "10m"
delay = "30s"
mode = "fail"
mode = "delay"
}
network {
mode = "bridge"
......@@ -106,7 +106,7 @@ healthchecks.require_healthy = true
. = merge!(., structured)
.message = .msg || .message
.timestamp = parse_timestamp(.ts, "%F %T,%3f") ?? .timestamp
.level = downcase!(.level)
.level = downcase!(.level || "info")
.nomad.job = .label."com.hashicorp.nomad.job_name"
.nomad.task = .label."com.hashicorp.nomad.task_name"
......@@ -128,6 +128,7 @@ healthchecks.require_healthy = true
encoding.codec = "json"
healthcheck.enabled = true
remove_label_fields = true
out_of_order_action = "accept"
[sinks.loki.labels]
"nomad_*" = '{{ nomad }}'
......@@ -143,7 +144,7 @@ healthchecks.require_healthy = true
scrape_interval_secs = 10
[sinks.prometheus_remote_write]
type = "prometheus_remote_write"
inputs = [ "host_metrics", "nomad_metrics", "internal_metrics" ]
inputs = [ "host_metrics", "nomad_metrics", "vector_metrics" ]
endpoint = "http://localhost:9090/api/v1/write"
healthcheck.enabled = false
EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment