-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-metrics.yml
54 lines (47 loc) · 1.28 KB
/
docker-compose-metrics.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
version: "3.4"
services:
l2geth:
command: ["--metrics", "--metrics.influxdb", "--metrics.influxdb.endpoint", "http://influxdb:8086", "--metrics.influxdb.database", "l2geth"]
batch_submitter:
environment:
BATCH_SUBMITTER_RUN_METRICS_SERVER: "true"
BATCH_SUBMITTER_METRICS_PORT: 7300
BATCH_SUBMITTER_METRICS_HOSTNAME: 0.0.0.0
grafana:
image: grafana/grafana:7.5.5
env_file:
- ./envs/metrics.env
ports:
- ${GRAFANA_HTTP_PORT:-3000}:3000
volumes:
- ./docker/grafana/provisioning/:/etc/grafana/provisioning/:ro
- grafana_data:/var/lib/grafana/
- grafana_dashboards:/grafana-dashboards:ro
influxdb:
image: quay.io/influxdb/influxdb:1.6
env_file:
- ./envs/metrics.env
volumes:
- influxdb_data:/var/lib/influxdb
prometheus:
image: prom/prometheus
env_file:
- ./envs/metrics.env
volumes:
- ./docker/prometheus:/etc/prometheus
- prometheus_data:/prometheus
dashboard-sync:
image: python:3
env_file:
- ./envs/metrics.env
command:
- python
- /scripts/dashboard-sync.py
volumes:
- ./docker/scripts/:/scripts
- grafana_dashboards:/grafana-dashboards
volumes:
influxdb_data:
grafana_data:
grafana_dashboards:
prometheus_data: