-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
94 lines (91 loc) · 2.36 KB
/
docker-compose.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
#volumes:
# mongo:
# step-ca:
services:
mongo:
image: mongo:latest
ports:
- 127.0.0.1:27017:27017/tcp
#volumes:
# - mongo:/data/db
step:
image: smallstep/step-ca
ports:
- "9000:9000/tcp"
environment:
DOCKER_STEPCA_INIT_NAME: "Node Manager Test"
DOCKER_STEPCA_INIT_DNS_NAMES: localhost
DOCKER_STEPCA_INIT_PROVISIONER_NAME: admin
DOCKER_STEPCA_INIT_PASSWORD: password
DOCKER_STEPCA_INIT_REMOTE_MANAGEMENT: true
#volumes:
# - step-ca:/home/step
otel-collector:
image: otel/opentelemetry-collector:latest
command: ["--config=/etc/otel-collector-config.yaml"]
ports:
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "8888:8888" # Prometheus metrics exposed by the collector
- "8889:8889" # Prometheus exporter metrics
configs:
- source: otel-collector-config.yaml
target: /etc/otel-collector-config.yaml
jaeger-all-in-one:
# http://127.0.0.1:16686
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "14268"
- "14250"
prometheus:
# http://127.0.0.1:9090
image: prom/prometheus:latest
ports:
- "9090:9090"
configs:
- source: prometheus.yaml
target: /etc/prometheus/prometheus.yml
configs:
otel-collector-config.yaml:
content: |
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
exporters:
debug:
verbosity: detailed
otlp:
endpoint: jaeger-all-in-one:4317
tls:
insecure: true
prometheus:
endpoint: "0.0.0.0:8889"
processors:
batch:
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [debug, otlp]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [debug, prometheus]
logs:
receivers: [otlp]
processors: [batch]
exporters: [debug]
prometheus.yaml:
content: |
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: ['otel-collector:8889']
- targets: ['otel-collector:8888']