Skip to content

Commit d244f3e

Browse files
committed
feat: added docker compose services and provisioning
1 parent 60daea0 commit d244f3e

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

docker-compose.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
services:
2+
eigenda_proxy:
3+
build:
4+
context: .
5+
dockerfile: Dockerfile
6+
container_name: eigenda-proxy
7+
environment:
8+
- EIGENDA_PROXY_ADDR=0.0.0.0
9+
- EIGENDA_PROXY_PORT=4242
10+
- MEMSTORE_ENABLED=false
11+
- MEMSTORE_EXPIRATION=45m
12+
- EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX=$PRIVATE_KEY
13+
- EIGENDA_PROXY_EIGENDA_DISPERSER_RPC=disperser-holesky.eigenda.xyz:443
14+
- EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0xD4A7E1Bd8015057293f0D0A557088c286942e84b
15+
- EIGENDA_PROXY_ETH_RPC=$ETH_RPC
16+
- EIGENDA_PROXY_ETH_CONFIRMATION_DEPTH=0
17+
- EIGENDA_PROXY_METRICS_ADDR=0.0.0.0
18+
- EIGENDA_PROXY_METRICS_ENABLED=true
19+
- EIGENDA_PROXY_METRICS_PORT=7300
20+
ports:
21+
- 4242:4242
22+
- 7300:7300
23+
24+
prometheus:
25+
image: prom/prometheus:latest
26+
container_name: prometheus
27+
volumes:
28+
- ./monitor/prometheus.yml:/etc/prometheus/prometheus.yml
29+
ports:
30+
- "9090:9090"
31+
command:
32+
- "--config.file=/etc/prometheus/prometheus.yml"
33+
34+
grafana:
35+
image: grafana/grafana:latest
36+
container_name: grafana
37+
ports:
38+
- "127.0.0.1:3000:3000"
39+
volumes:
40+
- ./monitor/grafana/provisioning/:/etc/grafana/provisioning/:ro
41+
- ./monitor/grafana/dashboards:/var/lib/grafana/dashboards
42+
environment:
43+
- GF_SECURITY_ADMIN_PASSWORD=admin
44+
depends_on:
45+
- prometheus
46+
47+
traffic-generator:
48+
image: alpine:latest
49+
build: scripts/
50+
container_name: traffic_generator
51+
depends_on:
52+
- eigenda_proxy
53+
volumes:
54+
- ./scripts/:/scripts/
55+
56+
volumes:
57+
grafana-data:
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: 1
2+
3+
providers:
4+
- name: 'default'
5+
orgId: 1
6+
folder: ''
7+
type: file
8+
disableDeletion: true
9+
editable: true
10+
options:
11+
path: /var/lib/grafana/dashboards
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: 1
2+
3+
deleteDatasources:
4+
- name: 'Prometheus'
5+
6+
datasources:
7+
- access: 'proxy'
8+
editable: true
9+
is_default: true
10+
name: 'Prometheus'
11+
uid: 'ddshms3dlineoe'
12+
org_id: 1
13+
type: 'prometheus'
14+
url: 'http://prometheus:9090'
15+
version: 1

monitor/prometheus.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# my global config
2+
global:
3+
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
4+
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
5+
# scrape_timeout is set to the global default (10s).
6+
7+
scrape_configs:
8+
- job_name: "eigenda-proxy"
9+
static_configs:
10+
# configure this to point to the target eigenda-proxy instance's metrics port
11+
- targets: ["localhost:7300"]

0 commit comments

Comments
 (0)