Jonathan Face 5464674d9d
Docker Compose Build / Run docker build (push) Failing after 26s
testing webhook
2024-02-28 12:13:33 -06:00
2020-12-04 21:59:53 +03:00
2024-02-28 11:59:06 -06:00
2020-12-04 20:00:13 +03:00
2020-12-04 22:48:57 +03:00
2020-12-04 21:59:53 +03:00
2024-02-28 11:52:07 -06:00
2021-04-11 19:10:09 +00:00
2024-02-28 12:13:33 -06:00
2024-02-28 11:52:07 -06:00

Prometheus Metrics for Geth-Statediff

Server exposes /metrics endpoint with Prometheus metrics:

  • eth_state_metrics_etherscan - latest block from Etherscan
  • eth_state_metrics_statediff_db - latest block from Statediff Database

StateDiff DB is not strictly required to be available if all you care about is etherscanning.

How to run

Locally

# copy config template
cp .env.example .env

# edit it and set Etherscan API Key and Database Credentials

# run server
node src/index.js

And then open in browser http://172.17.0.2:3000/metrics

Docker

docker run \
    -e SERVER_HOST=0.0.0.0 \
    -e ETHERSCAN_API_KEY="https://api.etherscan.io" \
    -e ETHERSCAN_API_KEY=*** \
    -e STATEDIFF_PG_HOST=*** \
    -d vulcanize/eth-state-metrics
S
Description
No description provided
Readme
75 KiB
Release 0.0.3
Latest
2020-12-06 17:43:09 +00:00
Languages
JavaScript 95.1%
Dockerfile 2.8%
Makefile 2.1%