-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobservability.yaml
67 lines (61 loc) · 1.66 KB
/
observability.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
version: "3.8"
services:
jaeger:
image: jaegertracing/all-in-one:1.40.0
ports:
- "16686:16686"
environment:
- COLLECTOR_OTLP_ENABLED=true
- METRICS_STORAGE_TYPE=prometheus
- PROMETHEUS_SERVER_URL=http://prometheus:9090
networks:
- observability-net
otel-collector:
image: otel/opentelemetry-collector-contrib:0.68.0
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./config/otel-collector.yaml:/etc/otel-collector-config.yaml
ports:
- "4317:4317"
- "4318:4318"
- "8888:8888"
- "9999:9999"
depends_on:
- jaeger
- prometheus
networks:
- observability-net
prometheus:
image: prom/prometheus:v2.41.0
command:
- --web.console.templates=/etc/prometheus/consoles
- --web.console.libraries=/etc/prometheus/console_libraries
- --storage.tsdb.retention.time=1h
- --storage.tsdb.path=/prometheus
- --web.enable-lifecycle
- --web.route-prefix=/
- --config.file=/etc/prometheus/prometheus.yml
- --web.enable-remote-write-receiver
volumes:
- ./config/prometheus.yaml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
networks:
- observability-net
grafana:
image: grafana/grafana:9.3.2
ports:
- "3000:3000"
volumes:
- ./config/ds-prometheus.yaml:/etc/grafana/provisioning/datasources/datasource.yml
environment:
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_BASIC_ENABLED=false
depends_on:
- prometheus
networks:
- observability-net
networks:
observability-net:
driver: bridge