Skip to content

Commit

Permalink
chore: promtail config 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
5uhwann committed Sep 24, 2024
1 parent 3809542 commit 60a459f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .ebextensions/02-install-promtail.config
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ container_commands:
- localhost
labels:
job: all_logs
__path__: /var/app/current/log/all/*.log
__path__: ./var/app/current/log/all/*.log

- job_name: warn
static_configs:
- targets:
- localhost
labels:
job: warn_logs
__path__: /var/app/current/log/warn/*.log
__path__: ./var/app/current/log/warn/*.log

- job_name: error
static_configs:
Expand All @@ -67,7 +67,9 @@ container_commands:
promtail:
image: grafana/promtail:2.5.0
environment:
- LOKI_URL=\${LOKI_URL}
- LOKI_URL=${LOKI_URL}
ports:
- "9080:9080" # 호스트의 9080 포트를 컨테이너의 9080 포트에 매핑
volumes:
- /var/log:/var/log
- /var/app/current/positions.yaml:/var/app/current/positions.yaml
Expand Down

0 comments on commit 60a459f

Please sign in to comment.