From 33103266f473c0941849091631966f5d48a7d7b0 Mon Sep 17 00:00:00 2001 From: Justin Chan Date: Mon, 30 Dec 2024 17:22:45 +1100 Subject: [PATCH] feat: enable metrics and add job for taiko client --- docker-compose.yml | 3 +++ prometheus/prometheus.yml | 6 +++++- script/start-driver.sh | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0577c68..1d74060 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: @@ -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: diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index 2334116..d9824af 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -10,4 +10,8 @@ scrape_configs: - job_name: 'nethermind' honor_labels: true static_configs: - - targets: ['nethermind_execution_l2:8018'] \ No newline at end of file + - targets: ['nethermind_execution_l2:8018'] + - job_name: 'taiko-client' + honor_labels: true + static_configs: + - targets: ['taiko_client_driver:6060'] \ No newline at end of file diff --git a/script/start-driver.sh b/script/start-driver.sh index 17ff6eb..e3dfc3d 100755 --- a/script/start-driver.sh +++ b/script/start-driver.sh @@ -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 @@ -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