Skip to content

Commit

Permalink
feat: enable metrics and add job for taiko client
Browse files Browse the repository at this point in the history
  • Loading branch information
nmjustinchan committed Dec 30, 2024
1 parent 935b7dc commit 3310326
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
depends_on:
- pushgateway
volumes:
- ./execution-data-taiko:/data/taiko-geth
- ./static/jwtsecret:/tmp/jwt/jwtsecret
- ./static/chainspec.json:/chainspec.json
networks:
Expand Down Expand Up @@ -68,6 +69,8 @@ services:
- ./execution-data-taiko:/data/taiko-geth
- ./static/jwtsecret:/tmp/jwt/jwtsecret
- ./script:/script
ports:
- 6060:6060
env_file:
- .env
entrypoint:
Expand Down
6 changes: 5 additions & 1 deletion prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ scrape_configs:
- job_name: 'nethermind'
honor_labels: true
static_configs:
- targets: ['nethermind_execution_l2:8018']
- targets: ['nethermind_execution_l2:8018']
- job_name: 'taiko-client'
honor_labels: true
static_configs:
- targets: ['taiko_client_driver:6060']
4 changes: 3 additions & 1 deletion script/start-driver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ if [ "$DISABLE_P2P_SYNC" = "false" ]; then
--taikoL1 "${TAIKO_L1_ADDRESS}" \
--taikoL2 "${TAIKO_L2_ADDRESS}" \
--jwtSecret /tmp/jwt/jwtsecret \
--metrics true \
--p2p.sync \
--p2p.checkPointSyncUrl "${P2P_SYNC_URL}"
else
Expand All @@ -21,5 +22,6 @@ else
--l2.auth http://l2-nethermind-execution-client:"${L2_ENGINE_API_PORT}" \
--taikoL1 "${TAIKO_L1_ADDRESS}" \
--taikoL2 "${TAIKO_L2_ADDRESS}" \
--jwtSecret /tmp/jwt/jwtsecret
--jwtSecret /tmp/jwt/jwtsecret \
--metrics true
fi

0 comments on commit 3310326

Please sign in to comment.