-
Notifications
You must be signed in to change notification settings - Fork 0
/
atatus-collector.yaml
60 lines (54 loc) · 1.3 KB
/
atatus-collector.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
# atatus-collector.yaml
receivers:
otlp:
protocols:
grpc:
http:
filelog:
include:
- /var/log/*.log
start_at: beginning
operators:
- type: regex_parser
regex: '^(?P<time>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}) (?P<sev>[A-Z]*) (?P<msg>.*)$'
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%d %H:%M:%S'
severity:
parse_from: attributes.sev
exporters:
# HTTP setup
logging:
verbosity: detailed
otlphttp/atatus:
endpoint: 'https://otel-rx.atatus.com'
headers:
api-key: '<YOUR_API_KEY>'
processors:
batch:
# You can optionally set the resource attributes (service, env and version - Optional).
resource:
attributes:
- key: service
value: "go-services"
action: upsert
- key: env
value: "prod"
action: upsert
- key: version
value: "1.0.0"
action: upsert
service:
pipelines:
traces:
receivers: [otlp]
processors: [resource, batch]
exporters: [logging, otlphttp/atatus]
metrics:
receivers: [otlp]
processors: [resource, batch]
exporters: [logging, otlphttp/atatus]
logs:
receivers: [otlp, filelog]
processors: [resource, batch]
exporters: [logging, otlphttp/atatus]