File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: CI/CD Pipeline to EC2 with Blue/Green
22
33on :
44 push :
5- branches : [main, dev]
5+ branches : [main, dev, ci/env ]
66
77# ───────────────────────────────────────────────────────────────
88concurrency :
Original file line number Diff line number Diff line change @@ -21,11 +21,11 @@ ingester:
2121 kvstore : { store: inmemory }
2222 replication_factor : 1
2323 num_tokens : 512
24- final_sleep : 0s
25- chunk_idle_period : 24h # 하루 단위 업로드 (업무 시간만 업로드 )
26- chunk_block_size : 4194304 # 4MB로 확대
24+ final_sleep : 30m # 서버 종료 시 최대 30분 동안 남은 청크 flush
25+ chunk_idle_period : 8h # 8시간으로 변경 (서버 운영 시간 고려 )
26+ chunk_block_size : 10485760 # 10MB로 확대
2727 chunk_retain_period : 72h # 청크가 로컬에 유지되는 최대 시간
28- max_chunk_age : 24h # 무조건 하루 단위로 S3 업로드
28+ max_chunk_age : 8h # 8시간으로 변경 (서버 운영 시간 고려)
2929
3030compactor :
3131 compaction_interval : 6h # 기존 10분 → 6시간
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ scrape_configs:
1515 - job_name : container_logs # 이 job_name은 초기값으로 사용되며, relabel_configs에서 변경됩니다.
1616 docker_sd_configs :
1717 - host : unix:///var/run/docker.sock # Docker 데몬 소켓
18- refresh_interval : 5s # 컨테이너 변경 감지 주기
18+ refresh_interval : 1m # 컨테이너 변경 감지 주기
1919
2020 relabel_configs :
2121 # ────────────────────────────────────────────────────────────
@@ -103,11 +103,6 @@ scrape_configs:
103103 target_label : ' image'
104104 action : replace
105105
106- # 'host' 라벨: 컨테이너 ID 사용
107- - source_labels : ['__meta_docker_container_id']
108- target_label : ' host'
109- action : replace
110-
111106 pipeline_stages :
112107 - docker : {} # Docker JSON 로그 파싱
113108
@@ -116,7 +111,7 @@ scrape_configs:
116111 selector : ' {job="spring-boot-app"}'
117112 stages :
118113 - regex :
119- expression : ' ^(?P<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z)\s+(?P<level>\S+)\s+(?P<pid>\d+)\s+---\s+\[(?P<thread>.*?)\]\s+\[(?P<application_name>.*?)\]\s+(?P< logger>[a-zA-Z0-9.$]+)\s+:\s+(?P<message>.*)$'
114+ expression : ' ^(?P<timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z)\s+(?P<level>\S+)\s+(?P<pid>\d+)\s+---\s+\[(?P<logger>[a-zA-Z0-9.$]+)\] \s+:\s+(?P<message>.*)$'
120115 - timestamp :
121116 source : timestamp
122117 format : RFC3339Nano
You can’t perform that action at this time.
0 commit comments