mirror of
https://github.com/demostf/setup
synced 2026-06-03 16:44:06 +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-positions:/positions
|
||||
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
|
||||
|
||||
networks:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,10 @@ positions:
|
|||
filename: /positions/positions.yaml
|
||||
|
||||
clients:
|
||||
- url: ${LOKI}
|
||||
- url: ${LOKI_URL}
|
||||
basic_auth:
|
||||
username: ${LOKI_USERNAME}
|
||||
password: ${LOKI_PASSWORD}
|
||||
|
||||
scrape_configs:
|
||||
- job_name: nginx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue