change promtail position and nomad data
This commit is contained in:
parent
c2b4f125a9
commit
4e5168d2b0
@ -40,8 +40,7 @@ job "promtail" {
|
||||
"-server.http-listen-port=${NOMAD_PORT_http}",
|
||||
]
|
||||
volumes = [
|
||||
"/mnt/diskstation/nomad/promtail:/data",
|
||||
"/var/lib/nomad/:/nomad/"
|
||||
"/opt/nomad/:/nomad/"
|
||||
]
|
||||
|
||||
}
|
||||
@ -51,7 +50,7 @@ job "promtail" {
|
||||
template {
|
||||
data = <<EOTC
|
||||
positions:
|
||||
filename: /data/positions.yaml
|
||||
filename: {{ env "NOMAD_ALLOC_DIR"}}/positions.yaml
|
||||
clients:
|
||||
- url: http://loki.service.consul:3100/loki/api/v1/push
|
||||
scrape_configs:
|
||||
|
Loading…
Reference in New Issue
Block a user