Skip to content

Commit be71d08

Browse files
committed
refactor: 모니터링 필터추가
1 parent a2c2bcb commit be71d08

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

monitoring/promtail/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ scrape_configs:
4242
format: RFC3339Nano
4343
- labels:
4444
level:
45+
- drop:
46+
# level이 INFO 이하인 로그는 보내지 않음 (DEBUG/TRACE 등 불필요한 로그 차단)
47+
source: level
48+
regex: 'DEBUG|TRACE'
4549

4650
# 'monitoring-stack' job의 로그에만 logfmt을 적용합니다.
4751
- match:
@@ -61,6 +65,10 @@ scrape_configs:
6165
format: RFC3339Nano
6266
- labels:
6367
level:
68+
- drop:
69+
# level이 INFO 이하인 로그는 보내지 않음 (DEBUG/TRACE 등 불필요한 로그 차단)
70+
source: level
71+
regex: 'DEBUG|TRACE|INFO'
6472
# 필요하다면 다른 추출 필드를 라벨로 추가할 수 있습니다:
6573
#component:
6674
# caller:

0 commit comments

Comments
 (0)