change promtail position and nomad data

This commit is contained in:
vincent 2022-07-02 11:11:30 +02:00
parent c2b4f125a9
commit 4e5168d2b0

View File

@ -40,8 +40,7 @@ job "promtail" {
"-server.http-listen-port=${NOMAD_PORT_http}", "-server.http-listen-port=${NOMAD_PORT_http}",
] ]
volumes = [ volumes = [
"/mnt/diskstation/nomad/promtail:/data", "/opt/nomad/:/nomad/"
"/var/lib/nomad/:/nomad/"
] ]
} }
@ -51,7 +50,7 @@ job "promtail" {
template { template {
data = <<EOTC data = <<EOTC
positions: positions:
filename: /data/positions.yaml filename: {{ env "NOMAD_ALLOC_DIR"}}/positions.yaml
clients: clients:
- url: http://loki.service.consul:3100/loki/api/v1/push - url: http://loki.service.consul:3100/loki/api/v1/push
scrape_configs: scrape_configs: