forked from MetalHexx/OpenTelemetryDotNetPoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
92 lines (83 loc) · 2.35 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
version: '3.4'
services:
gatewayapi:
container_name: poc-gateway-api
image: ${DOCKER_REGISTRY-}gatewayapi
ports:
- "5000:80"
- "5001:443"
build:
context: .
dockerfile: src/GatewayApi/Dockerfile
networks:
- poc-network
collector:
container_name: poc-collector
image: otel/opentelemetry-collector-contrib:0.42.0
ports:
- 4317:4317
- 4319:4319 # Http Protobuf Otel Receiver endpoint
- 8888:8888 # Collectors prometheus endpoint -- for metrics from the collector itself. See: /telemtry/otel-collector/otel-collector.yaml
- 8889:8889 # Exposed prometheus endpoint which contains the metrics that were scraped from the GatewayApi. -- See: /telemtry/otel-collector/otel-collector.yaml
command: [ "--config=/etc/otel-collector.yaml" ]
volumes:
- "./telemetry/otel-collector:/etc"
networks:
- poc-network
jaeger:
container_name: poc-jaeger
image: jaegertracing/all-in-one:1.25
ports:
- "5775:5775/udp"
- "6831:6831/udp"
- "6832:6832/udp"
- "5778:5778"
- "16686:16686"
- "14268:14268"
- "14250:14250"
- "9411:9411"
networks:
- poc-network
prometheus:
container_name: poc-prometheus
image: prom/prometheus:v2.21.0
ports:
- 9090:9090
depends_on:
- collector
volumes:
- "./telemetry/prometheus:/etc/prometheus"
command: --web.enable-lifecycle --config.file=/etc/prometheus/prometheus.yml
#--web.enable-lifecycle allows reloading of prometheus.yml without restarting the container
#--config.file specifies the location of the prometheus configuration file
networks:
- poc-network
influxdb:
container_name: poc-influxdb
image: influxdb:1.7
restart: always
ports:
- "8086:8086"
volumes:
- "./telemetry/influxdb/influxdb-storage:/var/lib/influxdb"
environment:
INFLUXDB_DB: actualdb
networks:
- poc-network
grafana:
container_name: poc-grafana
image: grafana/grafana
restart: always
ports:
- "3000:3000"
depends_on:
- influxdb
- prometheus
volumes:
- "./telemetry/grafana/var/lib/grafana:/var/lib/grafana"
- "./telemetry/grafana/etc/grafana:/etc/grafana"
networks:
- poc-network
networks:
poc-network:
driver: bridge