forked from ObolNetwork/charon-distributed-validator-node
-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathcompose-monitoring.yml
More file actions
71 lines (66 loc) · 2.24 KB
/
compose-monitoring.yml
File metadata and controls
71 lines (66 loc) · 2.24 KB
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
# Override any defaults specified by `${FOO:-bar}` in `.env` with `FOO=qux`.
# ${VARIABLE:-default} evaluates to default if VARIABLE is unset or empty in the environment.
# ${VARIABLE-default} evaluates to default only if VARIABLE is unset in the environment.
services:
prometheus:
profiles: [monitoring-metrics]
image: prom/prometheus:${PROMETHEUS_VERSION:-v3.9.1}
user: ":"
networks: [dvnode]
environment:
PROM_REMOTE_WRITE_TOKEN: ${PROM_REMOTE_WRITE_TOKEN:-}
SERVICE_OWNER: ${SERVICE_OWNER:-}
ALERT_DISCORD_IDS: "${ALERT_DISCORD_IDS:-}"
CLUSTER_NAME: ${CLUSTER_NAME:-}
CLUSTER_PEER: ${CLUSTER_PEER:-}
volumes:
- ./prometheus:/etc/prometheus
- ./data/prometheus:/prometheus
entrypoint: /etc/prometheus/run.sh
restart: unless-stopped
grafana:
profiles: [monitoring-visualization]
image: grafana/grafana:${GRAFANA_VERSION:-12.4.0}
user: ":"
ports:
- ${MONITORING_IP_GRAFANA:-0.0.0.0}:${MONITORING_PORT_GRAFANA:-3000}:3000
networks: [dvnode]
volumes:
- ./grafana/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./grafana/dashboards.yml:/etc/grafana/provisioning/dashboards/datasource.yml
- ./grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./grafana/dashboards:/etc/dashboards
- ./data/grafana:/var/lib/grafana
restart: unless-stopped
loki:
profiles: [monitoring-log-aggregator]
image: grafana/loki:${LOKI_VERSION:-3.6.7}
user: ":"
networks: [dvnode]
command: -config.file=/etc/loki/loki.yml
volumes:
- ./loki/loki.yml:/etc/loki/loki.yml
- ./data/loki:/opt/loki
restart: unless-stopped
alloy:
profiles: [monitoring-log-collector]
image: grafana/alloy:${ALLOY_VERSION:-v1.13.2}
environment:
CHARON_LOKI_ADDRESSES: ${CHARON_LOKI_ADDRESSES:-}
CLUSTER_NAME: ${CLUSTER_NAME:-}
CLUSTER_PEER: ${CLUSTER_PEER:-}
volumes:
- ./alloy:/etc/alloy
- /var/run/docker.sock:/var/run/docker.sock
networks: [dvnode]
entrypoint: /etc/alloy/run.sh
command:
[
"/bin/alloy",
"run",
"/etc/alloy/config.alloy",
"--storage.path=/var/lib/alloy/data",
]
restart: unless-stopped
networks:
dvnode: