This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
/
docker-compose.yaml
72 lines (64 loc) · 1.85 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
version: '3.0'
services:
db:
# TODO change to 15 when the new HA image is available
image: timescale/timescaledb-ha:pg14-latest
ports:
- 5432:5432/tcp
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
TSTUNE_PROFILE: promscale
prometheus:
image: prom/prometheus:latest
depends_on:
- promscale
ports:
- 9090:9090/tcp
volumes:
- ${PWD}/prometheus.yml:/etc/prometheus/prometheus.yml
alertmanager:
image: prom/alertmanager:latest
ports:
- 9093:9093/tcp
promscale:
image: timescale/promscale:latest
ports:
- 9201:9201/tcp
- 9202:9202/tcp
restart: on-failure
depends_on:
- db
volumes:
- ${PWD}/promscale_prometheus.yml:/prometheus.yml
- ${PWD}/rules.yml:/rules.yml
- ${PWD}/alerts.yml:/alerts.yml
environment:
PROMSCALE_DB_URI: postgres://postgres:password@db:5432/postgres?sslmode=allow
PROMSCALE_TRACING_OTLP_SERVER_ADDRESS: ":9202"
PROMSCALE_TELEMETRY_TRACE_OTEL_ENDPOINT: "otel-collector:4317"
PROMSCALE_TELEMETRY_TRACE_SAMPLING_RATIO: "0.1"
PROMSCALE_METRICS_RULES_CONFIG_FILE: /prometheus.yml
otel-collector:
platform: linux/amd64
image: "otel/opentelemetry-collector-contrib:0.63.1"
command: [ "--config=/etc/otel-collector-config.yml" ]
volumes:
- ${PWD}/otel-collector-config.yml:/etc/otel-collector-config.yml
ports:
- "14268:14268" # jaeger http
jaeger:
image: jaegertracing/jaeger-query:1.37.0
environment:
SPAN_STORAGE_TYPE: grpc-plugin
METRICS_STORAGE_TYPE: prometheus
GRPC_STORAGE_SERVER: promscale:9202
PROMETHEUS_SERVER_URL: "http://promscale:9201"
depends_on:
- promscale
ports:
- "16686:16686"
node_exporter:
image: quay.io/prometheus/node-exporter
ports:
- "9100:9100"