-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yaml
74 lines (52 loc) · 2.18 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
# docker-compose.yaml
#
# Riverbed-Community-Toolkit (https://github.com/riverbed/Riverbed-Community-Toolkit)
# 111-opentelemetry-autoinstrumentation-spring-demo-app
# version: 24.10.4
#
# Srpingboot petclinic app with OpenTelemetry automatic instrumentation
# to demonstrate OTLP-gRPC with the APM OpenTelemetry Collector
services:
riverbed-apm-opentelemetry-collector:
# APM OpenTelemetry Collector
# https://hub.docker.com/r/aternity/apm-collector
image: registry.hub.docker.com/aternity/apm-collector:2022.4.0-4
environment:
SERVER_URL: "wss://${RIVERBED_APM_SAAS_SERVER_HOST}/?RPM_AGENT_CUSTOMER_ID=${RIVERBED_APM_CUSTOMER_ID}"
ports:
# Uncomment the telemetry protocol to expose
# OpenTelemetry, https://opentelemetry.io
- "4317:4317/tcp" # OpenTelemetry OTLP over gRPC
# - "4318:4318/tcp" # OpenTelemetry OTLP JSON/Protobuf over HTTP
# - "55681:55681/tcp" # OpenTelemetry OTLP JSON/Protobuf over HTTP
# Jaeger, https://www.jaegertracing.io
# - "14268:14268/tcp" # Jaeger Thrift Binary over HTTP
# - "6831:6831/udp" # Jaeger Thrift Compact
# - "6832:6832/udp" # Jaeger Thrift Binary
# Zipkin, https://zipkin.io
# - "9411:9411/tcp" # Zipkin v2 json/protobuf and v1 json/thrift
# - "5775:5775/udp" # Jaeger's Thrift support for Zipkin v1
healthcheck:
test: ["CMD", "nc", "-zv", "localhost","4317"]
interval: 1m
timeout: 10s
retries: 6
start_period: 10s
start_interval: 5s
service111:
environment:
OTEL_SERVICE_NAME: "cookbook111-springboot-petclinic"
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: http://riverbed-apm-opentelemetry-collector:4317
OTEL_METRICS_EXPORTER: none
OTEL_TRACES_EXPORTER: otlp,logging
OTEL_EXPORTER_OTLP_PROTOCOL: "grpc"
JAVA_TOOL_OPTIONS: "-javaagent:./opentelemetry-javaagent.jar"
build:
context: .
dockerfile: Dockerfile
ports:
- "8080:8080/tcp"
restart: always
depends_on:
riverbed-apm-opentelemetry-collector:
condition: service_healthy