Skip to content

Commit

Permalink
feat: add prometheus and grafana tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan-Kim2028 committed Oct 15, 2024
1 parent 2c3dd68 commit 98ed05e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
28 changes: 27 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,34 @@ services:
networks:
- app-network
ports:
- "13524:13524" # expose this port to use gRPC mev-commit connection
- "13524:13524"
- "13523:13523"

prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
networks:
- app-network
ports:
- "9090:9090"

grafana:
image: grafana/grafana:latest
networks:
- app-network
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana

networks:
app-network:
external: true

volumes:
grafana-data:
prometheus-data:
7 changes: 7 additions & 0 deletions prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'bidder-node'
metrics_path: /metrics
static_configs:
- targets: ['mev-commit-bidder:13523']

0 comments on commit 98ed05e

Please sign in to comment.