-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
55 lines (49 loc) · 1.3 KB
/
compose.yml
File metadata and controls
55 lines (49 loc) · 1.3 KB
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
# A docker compose file that sets up a Tobey instance that is instrumented and
# exposes metrics to Prometheus via /metrics endpoint. The metrics are then
# scraped by prometheus. Grafana is used to visualize the metrics scraped by
# Prometheus.
#
# Use the following command:
# docker compose up
#
# Then hit the tobey instance:
# curl http://localhost:8080/ -X POST -d 'https://example.com'
#
# Now:
# - Access the Jaeger UI at http://localhost:16686/
# - Access the Grafana UI at http://localhost:3000/ (admin/admin)
services:
tobey:
ports:
- "8080:8080"
build:
context: ../../
environment:
- TOBEY_TELEMETRY="metrics traces"
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://jaeger:4318/v1/traces
- TOBEY_RESULT_REPORTER_DSN=disk:///tmp/tobey
volumes:
- tobey-cache:/cache
- /tmp/tobey:/tmp/tobey
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
grafana:
image: grafana/grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana-data:/var/lib/grafana
jaeger:
image: jaegertracing/all-in-one:latest
ports:
- "16686:16686"
- "4318:4318"
volumes:
tobey-cache:
grafana-data: