yujinlim / blockchain-monitoring

using prometheus to log blockchain stats
7 stars 8 forks source link
bitcoin blockchain dogecoin litecoin monitoring prometheus prometheus-exporter

Blockchain Monitoring

prometheus exporter to monitor bitcoin compatible blockchain node

Purpose

This is an API that provides metrics and probe endpoints for prometheus monitoring. It is use to monitor:

Supported Blockchain

Supported Network

Environmental variables

# 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

Requirements

Usage

Via git

git clone git@github.com:yujinlim/blockchain-monitoring.git

cd blockchain-monitoring

go build

# browse to localhost:8080
./blockchain-monitoring

via docker