This repository contains role for instaling container with Litecoind-core blockchain and simple Prometheus exporter
litecoind_home: '/opt/litecoind'
- directory for blockchain datalitecoind_versoin: 'latest'
- litecoin docker image taglitecoind_rpcuser: 'rpcuser'
- user for RPC authorizationlitecoind_rpcpassword: 'rpcpassword'
- password for RPC authorizationlitecoind_rpcport: 9322
- RPC portlitecoin_network: 'mainnet'
- LTC network (mainnet/testnet)ltc_user: 'ltc'
- restricted user for monitoring scriptltc_exporter_home: '/opt/ltc_exporter'
- directory for ltc exporter scriptltc_exporter_port: 8557
- port for ltc exporter scriptltc_cryptoapis_key: longapikey
- API key for CryptoAPIs.io servicesltc_exporter_interval: 600
- how often (in seconds) need to fetch info about blocks
This is very simple script, which provides following metrics:
# Some default Python metrics skipped
# HELP ltc_last_block Last block in our blockchain
# TYPE ltc_last_block gauge
# HELP ltc_last_etalon_block Last block in etalon blockchain
# TYPE ltc_last_etalon_block gauge
As etalon blockchain, we use Blockchain APIs from CryptoAPIs.io (the free plan is enough for that simple monitoring).