Skip to content

Commit

Permalink
feat: added docker compose services and provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Sep 3, 2024
1 parent 60daea0 commit 20a0f6d
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
services:
eigenda_proxy:
build:
context: .
dockerfile: Dockerfile
container_name: eigenda-proxy
environment:
- EIGENDA_PROXY_ADDR=0.0.0.0
- EIGENDA_PROXY_PORT=4242
- MEMSTORE_ENABLED=false
- MEMSTORE_EXPIRATION=45m
- EIGENDA_PROXY_SIGNER_PRIVATE_KEY_HEX=7beafac56e6e1e9579561c8cd1807a80798617b047a3f6ac9dbd72d56ad3fdb2
- EIGENDA_PROXY_EIGENDA_DISPERSER_RPC=disperser-holesky.eigenda.xyz:443
- EIGENDA_PROXY_SERVICE_MANAGER_ADDR=0xD4A7E1Bd8015057293f0D0A557088c286942e84b
- EIGENDA_PROXY_ETH_RPC=https://ethereum-holesky-rpc.publicnode.com
- EIGENDA_PROXY_ETH_CONFIRMATION_DEPTH=0
- EIGENDA_PROXY_METRICS_ADDR=0.0.0.0
- EIGENDA_PROXY_METRICS_ENABLED=true
- EIGENDA_PROXY_METRICS_PORT=7300
ports:
- 4242:4242
- 7300:7300

prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./monitor/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090:9090"
command:
- "--config.file=/etc/prometheus/prometheus.yml"

grafana:
image: grafana/grafana:latest
container_name: grafana
ports:
- "127.0.0.1:3000:3000"
volumes:
- ./monitor/grafana/provisioning/:/etc/grafana/provisioning/:ro
- ./monitor/grafana/dashboards:/var/lib/grafana/dashboards
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
depends_on:
- prometheus

volumes:
grafana-data:
File renamed without changes.
11 changes: 11 additions & 0 deletions monitor/grafana/provisioning/dashboards/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: 1

providers:
- name: 'default'
orgId: 1
folder: ''
type: file
disableDeletion: true
editable: true
options:
path: /var/lib/grafana/dashboards
15 changes: 15 additions & 0 deletions monitor/grafana/provisioning/datasources/all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: 1

deleteDatasources:
- name: 'Prometheus'

datasources:
- access: 'proxy'
editable: true
is_default: true
name: 'Prometheus'
uid: 'ddshms3dlineoe'
org_id: 1
type: 'prometheus'
url: 'http://prometheus:9090'
version: 1
11 changes: 11 additions & 0 deletions monitor/prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# my global config
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).

scrape_configs:
- job_name: "eigenda-proxy"
static_configs:
# configure this to point to the target eigenda-proxy instance's metrics port
- targets: ["localhost:7300"]

0 comments on commit 20a0f6d

Please sign in to comment.