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}",
|
"-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:
|
||||||
|
Loading…
Reference in New Issue
Block a user