prometheus exporter to monitor bitcoin compatible blockchain node
This is an API that provides metrics and probe endpoints for prometheus monitoring. It is use to monitor:
- node state (ping/pong)
- current node block count
- get difference of highest blockcount and current blockcount
- bitcoin (main, testnet)
- dash (main, testnet)
- dogecoin (main, testnet)
- ethereum (main, testnet)
- litecoin (main, testnet)
- main
- testnet
# default service port
PORT=8080
# type of blockchain, please refer to supported blockchain for variable naming
COIN_TYPE=ethereum
# node ip and port, if ethereum, please include protocol
COIN_HOST=http://<ip>:8545
# type of network, main/testnet
COIN_NETWORK=main
# for bitcoin compatible rpc
COIN_USER=username
COIN_PASSWORD=password
# namespace for prometheus exporter
COIN_NAMESPACE=ethereum
- Go 1.8 and above
git clone [email protected]:alexvlasov/blockchain-monitoring.git
cd blockchain-monitoring
go build
# browse to localhost:8080
./blockchain-monitoring