-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpromtail-config.yaml
70 lines (63 loc) · 1.43 KB
/
promtail-config.yaml
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
67
68
69
70
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: containers
static_configs:
- targets:
- localhost
labels:
job: containerlogs
__path__: /var/lib/docker/containers/*/*log
pipeline_stages:
- json:
expressions:
output: log
stream: stream
name: attrs.containerPrettyName
- json:
expressions:
tag:
source: attrs
- regex:
expression: (?P<image_name>(?:[^|]*[^|])).(?P<container_name>(?:[^|]*[^|])).(?P<image_id>(?:[^|]*[^|])).(?P<container_id>(?:[^|]*[^|]))
source: tag
- timestamp:
format: RFC3339Nano
source: time
- labels:
tag:
stream:
image_name:
container_name:
image_id:
container_id:
name:
- output:
source: output
- job_name: manual_fixes
static_configs:
- targets:
- localhost
labels:
job: manual_fixes_logs
__path__: /manual_fixes.log
pipeline_stages:
- json:
expressions:
fixed_by: fixed_by
fixes: fixes
description: description
- timestamp:
format: RFC3339Nano
source: time
- labels:
fixed_by:
fixes:
description:
- output:
source: description