Go to file
dependabot[bot] 1255affdb7
Bump axios from 0.21.0 to 0.21.1
Bumps [axios](https://github.com/axios/axios) from 0.21.0 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.0...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-11 19:10:09 +00:00
.github/workflows github actions 2020-12-04 21:59:53 +03:00
src add ETHERSCAN_API_URL env to allow customizing the api endpoint per network 2021-04-11 18:56:52 +00:00
.env.example add ETHERSCAN_API_URL env to allow customizing the api endpoint per network 2021-04-11 18:56:52 +00:00
.gitignore initial commit 2020-12-04 20:00:13 +03:00
Dockerfile SIGINT handler, documentation 2020-12-04 22:48:57 +03:00
Makefile github actions 2020-12-04 21:59:53 +03:00
package.json Bump axios from 0.21.0 to 0.21.1 2021-04-11 19:10:09 +00:00
README.md add ETHERSCAN_API_URL env to allow customizing the api endpoint per network 2021-04-11 18:56:52 +00:00
yarn.lock Bump axios from 0.21.0 to 0.21.1 2021-04-11 19:10:09 +00: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

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