mirror of
https://github.com/demostf/setup
synced 2026-06-04 00:54:07 +02:00
fix loki
This commit is contained in:
parent
1e8bf4c917
commit
d8d543cd95
2 changed files with 7 additions and 2 deletions
|
|
@ -104,7 +104,9 @@ services:
|
||||||
- ./promtail.yml:/etc/promtail/promtail.yml
|
- ./promtail.yml:/etc/promtail/promtail.yml
|
||||||
- ./promtail-positions:/positions
|
- ./promtail-positions:/positions
|
||||||
environment:
|
environment:
|
||||||
- LOKI=${LOKI_URL}
|
- LOKI_URL=${LOKI_URL}
|
||||||
|
- LOKI_USERNAME=${LOKI_USERNAME}
|
||||||
|
- LOKI_PASSWORD=${LOKI_PASSWORD}
|
||||||
command: -config.file=/etc/promtail/promtail.yml -config.expand-env=true
|
command: -config.file=/etc/promtail/promtail.yml -config.expand-env=true
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,10 @@ positions:
|
||||||
filename: /positions/positions.yaml
|
filename: /positions/positions.yaml
|
||||||
|
|
||||||
clients:
|
clients:
|
||||||
- url: ${LOKI}
|
- url: ${LOKI_URL}
|
||||||
|
basic_auth:
|
||||||
|
username: ${LOKI_USERNAME}
|
||||||
|
password: ${LOKI_PASSWORD}
|
||||||
|
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: nginx
|
- job_name: nginx
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue