-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yml
57 lines (53 loc) · 1.47 KB
/
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
name: "grex_obs_dbs"
services:
# Time series database
prometheus:
image: prom/prometheus:latest
container_name: prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--enable-feature=remote-write-receiver"
- "--storage.tsdb.retention.time=1y"
- "--storage.tsdb.path=/prometheus"
ports:
- 9090:9090
restart: always
volumes:
- /hdd/prometheus:/prometheus
# Host monitoring
node-exporter:
image: prom/node-exporter:latest
container_name: node-exporter
restart: always
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- "--path.procfs=/host/proc"
- "--path.rootfs=/rootfs"
- "--path.sysfs=/host/sys"
- "--collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)"
ports:
- 9100:9100
# OpenTelemetry / Prometheus Collector -> Grafana Bridge
alloy:
image: grafana/alloy:latest
container_name: alloy
ports:
- 12345:12345 # Alloy WebUI
- 4317:4317 # OTLP gRPC receiver
- 4318:4318 # OTLP http receiver
restart: always
volumes:
- ./config.alloy:/etc/alloy/config.alloy
extra_hosts:
- "host.docker.internal:host-gateway"
command: run --server.http.listen-addr=0.0.0.0:12345 --storage.path=/var/lib/alloy/data /etc/alloy/config.alloy
depends_on:
- prometheus
env_file:
- path: ./alloy.env
required: true
volumes:
prom_data: