-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yaml
86 lines (66 loc) · 2.51 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
# docker-compose.yaml
#
# Riverbed-Community-Toolkit (https://github.com/riverbed/Riverbed-Community-Toolkit)
# 109-opentelemetry-export
# version: 24.10.4
services:
example-app:
environment:
- OTEL_EXPORTER_OTLP_ENDPOINT=otel-collector:4317
- OTEL_METRICS_EXPORTER:none
depends_on:
- otel-collector
build:
# Uncomment to build from local context
# context: .
# Build from remote context
context: https://github.com/riverbed/Riverbed-Community-Toolkit.git#master:/APM/109-opentelemetry-export
dockerfile: Dockerfile
restart: unless-stopped
otel-collector:
# OpenTelemetry Collector
# https://github.com/open-telemetry
image: registry.hub.docker.com/otel/opentelemetry-collector:latest
command: ["--config=/etc/otel-collector-config.yaml", "${OTELCOL_ARGS}"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317" # OTLP gRPC receiver
depends_on:
riverbed-apm-opentelemetry-collector:
condition: service_healthy
zipkin-all-in-one:
condition: service_started
riverbed-apm-opentelemetry-collector:
# APM OpenTelemetry Collector
# https://hub.docker.com/r/aternity/apm-collector
image: registry.hub.docker.com/aternity/apm-collector:2022.11.0-4
container_name: riverbed-apm-opentelemetry-collector
environment:
SERVER_URL: "wss://${RIVERBED_APM_SAAS_SERVER_HOST}/?RPM_AGENT_CUSTOMER_ID=${RIVERBED_APM_CUSTOMER_ID}"
# ports:
# 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
zipkin-all-in-one:
# Zipkin
# UI: http://localhost:9411/zipkin
container_name: zipkin-all-in-one
image: openzipkin/zipkin:latest
ports:
- "9411:9411"