Skip to content

Commit

Permalink
feat: prom export
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 3, 2025
1 parent 61594ae commit 5c6dc11
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
31 changes: 30 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,33 @@ services:
- ./db:/usr/local/bin/dbdata
# The metrics port is the default port for the OP Proposer.
ports:
- "7300:7300"
- "7306:7306"

prometheus:
image: prom/prometheus:latest
volumes:
- ./prometheus:/etc/prometheus
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
ports:
- "9090:9090"
restart: unless-stopped

grafana:
image: grafana/grafana:latest
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_SECURITY_ADMIN_USER=admin
ports:
- "3000:3000"
depends_on:
- prometheus
restart: unless-stopped

volumes:
prometheus_data:
grafana_data:
8 changes: 8 additions & 0 deletions prometheus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
global:
scrape_interval: 15s

scrape_configs:
- job_name: 'op-proposers'
static_configs:
- targets:
- 'op-succinct-proposer:7306'

0 comments on commit 5c6dc11

Please sign in to comment.