forked from grafana/pyroscope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
113 lines (105 loc) · 3.2 KB
/
docker-compose.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3"
services:
rideshare-go-ap-south:
ports:
- 5000
hostname: rideshare-go-ap-south
environment: &env
PYROSCOPE_SERVER_ADDRESS: http://pyroscope:4040
OTLP_URL: tempo:4318
OTLP_INSECURE: 1
DEBUG_LOGGER: 1
REGION: ap-south
build:
context: ../../language-sdk-instrumentation/golang-push/rideshare
rideshare-go-eu-north:
ports:
- 5000
hostname: rideshare-go-eu-north
environment:
<<: *env
REGION: eu-north
build:
context: ../../language-sdk-instrumentation/golang-push/rideshare
rideshare-java-us-east:
ports:
- 5000
hostname: rideshare-java-us-east
environment:
<<: *env
OTEL_TRACES_EXPORTER: otlp
OTEL_EXPORTER_OTLP_ENDPOINT: http://tempo:4317
OTEL_SERVICE_NAME: rideshare.java.push.app
OTEL_METRICS_EXPORTER: none
OTEL_TRACES_SAMPLER: always_on
OTEL_PROPAGATORS: tracecontext
PYROSCOPE_LABELS: hostname=rideshare-java-us-east
REGION: us-east
build:
context: ../../language-sdk-instrumentation/java/rideshare
dockerfile: Dockerfile.otel-instrumentation
rideshare-dotnet-eu-west:
platform: linux/amd64
ports:
- 5000
hostname: rideshare-dotnet-eu-west
environment:
<<: *env
OTEL_TRACES_EXPORTER: otlp
OTEL_EXPORTER_OTLP_ENDPOINT: http://tempo:4317
OTEL_SERVICE_NAME: rideshare.dotnet.push.app
OTEL_METRICS_EXPORTER: none
OTEL_TRACES_SAMPLER: always_on
OTEL_PROPAGATORS: tracecontext
OTEL_RESOURCE_ATTRIBUTES: host.name=rideshare-dotnet-eu-west
PYROSCOPE_LABELS: hostname=rideshare-dotnet-eu-west
REGION: eu-west
build:
context: ../../language-sdk-instrumentation/dotnet/rideshare
dockerfile: Dockerfile
load-generator:
environment: *env
build:
context: ../../language-sdk-instrumentation/golang-push/rideshare
dockerfile: Dockerfile.load-generator
command:
- ./loadgen
- http://rideshare-go-ap-south:5000
- http://rideshare-go-eu-north:5000
- http://rideshare-java-us-east:5000
- http://rideshare-dotnet-eu-west:5000
grafana:
image: grafana/grafana-dev:10.3.0-151740
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_INSTALL_PLUGINS=pyroscope-panel
- GF_FEATURE_TOGGLES_ENABLE=traceToProfiles tracesEmbeddedFlameGraph
volumes:
- ./grafana/provisioning/datasources:/etc/grafana/provisioning/datasources
ports:
- '3000:3000'
tempo:
image: grafana/tempo:latest
command: [ "-config.file=/etc/tempo.yml" ]
volumes:
- ./tempo/tempo.yml:/etc/tempo.yml
ports:
- "14268:14268" # jaeger ingest
- "3200:3200" # tempo
- "9095:9095" # tempo grpc
- "4317:4317" # otlp grpc
- "4318:4318" # otlp http
- "9411:9411" # zipkin
pyroscope:
image: grafana/pyroscope:latest
environment:
JAEGER_AGENT_HOST: tempo
JAEGER_SAMPLER_TYPE: const
JAEGER_SAMPLER_PARAM: 1
command: [ "-config.file=/etc/pyroscope.yml" ]
ports:
- '4040:4040'
volumes:
- ./pyroscope/pyroscope.yml:/etc/pyroscope.yml