forked from nachomdo/draper
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcollector.yml
40 lines (33 loc) · 802 Bytes
/
collector.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
receivers:
prometheus:
config:
global:
scrape_interval: 30s
scrape_timeout: 30s
scrape_configs:
- job_name: "kstream metrics"
static_configs:
- targets: ["kstream-service:9999"]
relabel_configs:
- source_labels: [__address__]
target_label: hostname
regex: '([^:]+)(:[0-9]+)?'
replacement: '${1}'
processors:
batch:
timeout: 5s
send_batch_size: 50
send_batch_max_size: 150
exporters:
otlp:
endpoint: "http://apm-server:8200"
insecure: true
# Used for Prometheus metrics debugging
prometheus:
endpoint: 0.0.0.0:8889
service:
pipelines:
metrics:
receivers: [prometheus]
processors: [batch]
exporters: [otlp,prometheus]