Skip to content

Commit c9f2199

Browse files
committed
[fix/#12] 프롬테일 설정 수정
1 parent be32a59 commit c9f2199

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

promtail-config.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ server:
22
http_listen_port: 9080
33

44
positions:
5-
filename: /tmp/positions.yaml
5+
filename: /var/lib/promtail/positions.yaml
66

77
clients:
88
- url: http://loki:3100/loki/api/v1/push
9+
batchwait: 5s
10+
batchsize: 512000
911

1012
scrape_configs:
1113
- job_name: "docker-logs"
@@ -14,5 +16,5 @@ scrape_configs:
1416
refresh_interval: 5s
1517
relabel_configs:
1618
- source_labels: [__meta_docker_container_name]
17-
regex: "/(.*)"
18-
target_label: container
19+
regex: "moplus-server-dev"
20+
action: keep

0 commit comments

Comments
 (0)