diff --git a/Makefile b/Makefile index afd8dd594e..ac0217265d 100644 --- a/Makefile +++ b/Makefile @@ -248,20 +248,13 @@ stop-stateful-upgrade: cd contrib/localnet/ && $(DOCKER) compose -f docker-compose-stateful.yml down --remove-orphans ############################################################################### -### Monitoring and Blockscout ### +### Monitoring ### ############################################################################### -start-blockscout: - @echo "Starting blockscout" - cd contrib/localnet/blockscout && $(DOCKER) compose -f docker-compose.yml up -d - -stop-blockscout: - @echo "Stopping blockscout" - cd contrib/localnet/blockscout && $(DOCKER) compose -f docker-compose.yml down --remove-orphans - start-monitoring: @echo "Starting monitoring services" - cd contrib/localnet/ && $(DOCKER) compose -f docker-compose-monitoring.yml up -d + cd contrib/localnet/ && ./grafana/get-tss-address.sh + $(DOCKER) compose -f docker-compose-monitoring.yml up -d stop-monitoring: @echo "Stopping monitoring services" diff --git a/contrib/localnet/README.md b/contrib/localnet/README.md index 5d13e6dec1..96143b06d5 100644 --- a/contrib/localnet/README.md +++ b/contrib/localnet/README.md @@ -77,7 +77,8 @@ which does the following docker compose command: $ docker compose down --remove-orphans ``` ### Run monitoring setup -Before starting the monitoring setup, make sure you have added the eth addresses of interest to the grafana/addresses.txt file +Before starting the monitoring setup, make sure the Zetacore API is up at http://localhost:1317. +You can also add any additional ETH addresses to monitor in zeta-node/contrib/localnet/grafana/addresses.txt file ```bash # in zeta-node/ make start-monitoring diff --git a/contrib/localnet/grafana/addresses.txt b/contrib/localnet/grafana/addresses.txt index 47b6e974e6..28064b6d43 100644 --- a/contrib/localnet/grafana/addresses.txt +++ b/contrib/localnet/grafana/addresses.txt @@ -1 +1 @@ -ethTSS:0x5517d89798EC0cfD19a756398c81C12fbd26CD33 \ No newline at end of file +ethTSS:0xB2E31B27E6114B0E2E37C3B74B097f7f340cC6aa diff --git a/contrib/localnet/grafana/get-tss-address.sh b/contrib/localnet/grafana/get-tss-address.sh new file mode 100755 index 0000000000..eae4b031af --- /dev/null +++ b/contrib/localnet/grafana/get-tss-address.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +/usr/sbin/sshd + +#retrieve value of ETH TSS Address from localnet +ethTSS_address=$(curl 'http://localhost:1317/zeta-chain/observer/get_tss_address' | jq -r '.eth') + +#write value of ETH TSS Address to addresses.txt file +printf "ethTSS:$ethTSS_address\n" > addresses.txt \ No newline at end of file