Skip to content

Commit d707c92

Browse files
authored
[DDING-000] promtail의 로그 수집 타게팅 수정 (#317)
1 parent 3a24091 commit d707c92

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

promtail/promtail-config.yml

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,10 @@ positions:
66
filename: /positions.yaml
77

88
scrape_configs:
9-
- job_name: all
9+
- job_name: application
1010
static_configs:
1111
- targets:
1212
- localhost
1313
labels:
14-
job: all_logs
15-
__path__: /var/logs/all/*.log
16-
17-
- job_name: warn
18-
static_configs:
19-
- targets:
20-
- localhost
21-
labels:
22-
job: warn_logs
23-
__path__: /var/logs/warn/*.log
24-
25-
- job_name: error
26-
static_configs:
27-
- targets:
28-
- localhost
29-
labels:
30-
job: error_logs
31-
__path__: /var/logs/error/*.log
14+
job: application_logs
15+
__path__: logs/application*.log

0 commit comments

Comments
 (0)