-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathotel-config-template.yaml
58 lines (51 loc) · 1.21 KB
/
otel-config-template.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
receivers:
statsd:
hostmetrics:
collection_interval: 1m
scrapers:
cpu:
load:
memory:
network:
processors:
filter:
error_mode: ignore
metrics:
metric:
- 'name == "k6.http_req_blocked"'
- 'name == "k6.http_req_connecting"'
- 'name == "k6.http_req_tls_handshaking"'
- 'name == "k6.http_req_sending"'
- 'name == "k6.http_req_waiting"'
- 'name == "k6.http_req_receiving"'
batch:
send_batch_size: 1000
send_batch_max_size: 1000
metricstransform:
transforms:
- include: ^.*$
match_type: regexp
action: update
operations:
- action: add_label
new_label: build_id
new_value: "{ID}"
- include: ^k6\.check\.(?P<name>.*?)\.(?P<result>.*)
match_type: regexp
action: combine
new_name: k6.checks
submatch_case: lower
exporters:
otlphttp:
endpoint: "{URL}/api/v2/otlp"
headers:
Authorization: "Api-Token {APITOKEN}"
service:
telemetry:
logs:
level: "info"
pipelines:
metrics:
receivers: [statsd, hostmetrics]
processors: [filter, batch, metricstransform]
exporters: [otlphttp]