-
Notifications
You must be signed in to change notification settings - Fork 0
/
promtail-config.yml
66 lines (57 loc) · 1.42 KB
/
promtail-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
server:
http_listen_port: 9080
grpc_listen_port: 0
positions:
filename: /tmp/positions.yaml
clients:
- url: http://loki:3100/loki/api/v1/push
scrape_configs:
- job_name: system
static_configs:
- targets:
- localhost
labels:
job: varlogs
__path__: /var/log/*.log
- job_name: admin_logs_warn
static_configs:
- targets:
- http://loki:3100
labels:
job: admin_logs_warn
__path__: /admin/logs/warn/warn.log
- job_name: admin_logs_error
static_configs:
- targets:
- http://loki:3100
labels:
job: admin_logs_error
__path__: /admin/logs/error/error.log
- job_name: admin_logs_info
static_configs:
- targets:
- http://loki:3100
labels:
job: admin_logs_info
__path__: /admin/logs/info/info.log
- job_name: b2c_logs_warn
static_configs:
- targets:
- http://loki:3100
labels:
job: b2c_logs_warn
__path__: /b2c/logs/warn/warn.log
- job_name: b2c_logs_error
static_configs:
- targets:
- http://loki:3100
labels:
job: b2c_logs_error
__path__: /b2c/logs/error/error.log
- job_name: b2c_logs_info
static_configs:
- targets:
- http://loki:3100
labels:
job: b2c_logs_info
__path__: /b2c/logs/info/info.log