-
Notifications
You must be signed in to change notification settings - Fork 0
/
otelcol-config.yml
48 lines (46 loc) · 1.06 KB
/
otelcol-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
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'cadvisor'
static_configs:
- targets: ['cadvisor:8080']
metric_relabel_configs:
- source_labels: [id]
regex: '/docker/(.{12}).*'
target_label: short_id
replacement: '$$1'
- source_labels: [short_id]
regex: 'buildx|buildkit'
action: drop
otlp:
protocols:
grpc:
http:
cors:
allowed_origins:
- "http://*"
- "https://*"
exporters:
otlp:
endpoint: "<otlp endpoint>"
headers:
"Authorization": "Basic <HEADER>"
processors:
batch:
timeout: 5s
send_batch_size: 100000
resourcedetection/docker:
detectors: ["env", "docker"]
timeout: 2s
override: false
service:
pipelines:
metrics:
receivers: [otlp, prometheus]
processors: [batch, resourcedetection/docker]
exporters: [otlp]
traces:
receivers: [otlp]
processors: [resourcedetection/docker, batch]
exporters: [otlp]