-
Notifications
You must be signed in to change notification settings - Fork 0
/
otel-collector.yml
63 lines (54 loc) · 1.3 KB
/
otel-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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
prometheus:
config:
scrape_configs:
- job_name: otel-collector
# scrape_interval: 15s
static_configs:
- targets: ["localhost:8888"]
- job_name: grafana
static_configs:
- targets: ["grafana:3000"]
- job_name: tempo
static_configs:
- targets: ["tempo:3200"]
- job_name: jspring
metrics_path: /actuator/prometheus
static_configs:
- targets: ["jspring:8080"]
- job_name: traefik
static_configs:
- targets: ["traefik:8082"]
- job_name: postgres-exporter
static_configs:
- targets: ["postgres-exporter:9187"]
exporters:
logging:
loglevel: debug
otlp:
endpoint: tempo:4317
tls:
insecure: true
prometheusremotewrite:
endpoint: "http://prometheus:9090/api/v1/write"
tls:
insecure: true
resource_to_telemetry_conversion:
enabled: true
processors:
batch:
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [logging, otlp]
metrics:
receivers: [otlp, prometheus]
processors: [batch]
exporters: [prometheusremotewrite]