This commit is contained in:
parent
e043ed10f8
commit
bf5b04d706
@ -1,14 +1,16 @@
|
|||||||
# Prometheus Metrics for Geth-Statediff
|
# Prometheus Metrics for Geth-Statediff
|
||||||
|
|
||||||
Server exposes `/metrics` endpoint with Prometheus metrics:
|
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
|
- `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
|
## How to run
|
||||||
|
|
||||||
### Locally
|
### Locally
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
# copy config template
|
# copy config template
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
@ -18,6 +20,7 @@ cp .env.example .env
|
|||||||
# run server
|
# run server
|
||||||
node src/index.js
|
node src/index.js
|
||||||
```
|
```
|
||||||
|
|
||||||
And then open in browser `http://172.17.0.2:3000/metrics`
|
And then open in browser `http://172.17.0.2:3000/metrics`
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
Loading…
Reference in New Issue
Block a user