-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added docker compose services and provisioning
- Loading branch information
Showing
5 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |