/
otelcol-daemon.yaml
95 lines (91 loc) · 2.34 KB
/
otelcol-daemon.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
extensions:
health_check:
receivers:
awscontainerinsightreceiver:
collection_interval: 30s
container_orchestrator: ecs
hostmetrics:
root_path: /rootfs
collection_interval: 30s
scrapers:
cpu: {}
load: {}
memory: {}
disk: {}
filesystem: {}
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
tcplog:
listen_address: "0.0.0.0:2255"
operators:
- type: regex_parser
regex: '^<([0-9]+)>[0-9]+ (?P<timestamp>[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]+)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?Z) (?P<instance_name>\S+) ecs-(?P<task_family>\S+)-(?P<task_revision>[0-9]+)-(?P<container_name>\S+)-(?P<container_id_unique>[0-9a-f]+) [0-9]+ - -( (?P<body>.*))?'
timestamp:
parse_from: attributes.timestamp
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
- type: move
from: attributes["body"]
to: body
- type: remove
field: attributes.timestamp
# please remove names from below if you want to collect logs from them
- type: filter
id: signoz_logs_filter
expr: 'attributes.container_name matches "^signoz-(collector|logspout)"'
processors:
batch:
timeout: 10s
batch/aws:
timeout: 60s
resource/aws:
attributes:
- key: Timestamp
action: delete
resourcedetection:
detectors:
- env
- ec2
- ecs
- system
timeout: 2s
override: false
exporters:
otlp:
endpoint: "ingest.{region}.signoz.cloud:443"
tls:
insecure: false
headers:
signoz-access-token: "<SIGNOZ_INGESTION_KEY>"
logging:
verbosity: normal
service:
pipelines:
metrics/aws:
receivers: [awscontainerinsightreceiver]
processors: [resource/aws, batch/aws]
exporters: [otlp]
metrics/host:
receivers: [hostmetrics]
processors: [resourcedetection, batch]
exporters: [otlp]
logs/tcplog:
receivers: [tcplog]
processors: [batch]
exporters: [otlp]
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp, logging]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlp, logging]
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlp, logging]
extensions: [health_check]