Skip to content

Commit

Permalink
chore: promtail-docker-compose.yml 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Sep 26, 2024
1 parent 34d9ed3 commit 66ff169
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 0 additions & 3 deletions promtail/promtail-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ server:
positions:
filename: /positions.yaml

clients:
- url: ${LOKI_URL}

scrape_configs:
- job_name: all
static_configs:
Expand Down
8 changes: 5 additions & 3 deletions promtail/promtail-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ services:
environment:
- LOKI_URL
volumes:
- /var/app/current/promtail/promtail-config.yml:/var/app/current/promtail/promtail-config.yml
- /var/app/current/logs:/var/logs #서버 로그 파일 경로를 Promtail에 마운트
command: -config.file=/var/app/current/promtail/promtail-config.yml
- /var/app/current/promtail/promtail-config.yml:/etc/promtail/config.yml
- /var/app/current/logs:/var/logs # 로컬 로그 파일 경로를 Promtail에 마운트
command: >
-config.file=/etc/promtail/config.yml
-client.url=${LOKI_URL}
ports:
- "9080:9080" # Promtail의 웹 UI를 호스트와 매핑

0 comments on commit 66ff169

Please sign in to comment.