Haskell-based CoinMetrics.io tools
These tools are used by CoinMetrics.io team for exporting data from blockchains into analytical databases and monitoring full nodes synchronization state.
- coinmetrics-export - utility for exporting data from blockchains in formats suitable for inserting into analytics databases (SQL, Avro).
- coinmetrics-monitor - utility for monitoring blockchain nodes and providing Prometheus-compatible metrics.
The project is in early alpha deep development seems-like-its-working-oh-crap state. Command line interface is more or less stable but may change. Please use with caution.
There're no stable releases yet. All binaries are "bleeding edge" ones built on Travis CI.
One easy way to run the tools is to use docker.
Pull the latest version:
docker pull quay.io/coinmetrics/haskell-tools
docker run -it --rm --net host quay.io/coinmetrics/haskell-tools coinmetrics-export <arguments>
Alternatively you can download executables:
Or setup package repository to receive updates:
echo 'deb https://dl.bintray.com/coinmetrics/haskell-tools-deb unstable main' > /etc/apt/sources.list.d/coinmetrics-haskell-tools.list curl 'https://bintray.com/user/downloadSubjectPublicKey?username=bintray' | apt-key add - apt update apt install coinmetrics-export
(cd /etc/yum.repos.d/ && curl -JOL https://bintray.com/coinmetrics/haskell-tools-rpm/rpm) yum install coinmetrics-export
Packages have the advantage of providing bash completion support out of the box.
Building from source
stack build --install-ghc --copy-bins --local-bin-path <path for executables>. Executables will be built and placed by specified path.
The code is only tested on Linux (but maybe works on other OSes too).