CC-Exporter is a Prometheus metrics exporter developed with Python which allows you to monitor Cryptocurrencies Market Cap from Grafana dashboards and define multiple alerts by generating metrics from CoinCap public api.
$ git clone https://github.com/Mtt6300/cc-exporter
$ cd cc-exporter
$ docker-compose up -d
Now you should be able to visit Grafana dashboard on http://localhost:3000
Note: By default user and password is admin
.
For Customization you need to change these envs in cc-exporter
service from docker-compose.yaml
file:
INTERVAL
: Timeout for fetch in data from api. (default: 50)CRYPTOS
: String that shows which Coins you want to monitor. If is more than 1, you must separatecoin id
's with Commas.(default: ethereum,bitcoin,xrp,binance-coin,stellar,tether)APP_PORT
: Cc-exporter port. (default: 5000)COINCAPURL
: Coin Cap Api url. (default: https://api.coincap.io/v2/assets)
Note: You should find the correct coin id
from CoinCap public api. (link: https://api.coincap.io/v2/assets)
You can install cc-exporter with Helm. Fist need to add chart repo:
$ helm repo add mtt6300 https://mtt6300.github.io/charts/
$ helm repo update
Than install cc-exporter by default configurations:
$ helm install cc-exporter mtt6300/cc-exporter
Or
$ helm install cc-exporter mtt6300/cc-exporter --set config.INTERVAL=50 --set config.APP_PORT=5000 --set config.COINCAPURL=https://api.coincap.io/v2/assets --set config.CRYPTOS=ethereum,bitcoin,xrp,binance-coin,stellar
Grafana dhasboard page: https://grafana.com/grafana/dashboards/13791
- https://hub.docker.com/r/mtt6300/cc-exporter
- https://github.com/Mtt6300/charts/tree/master/cc-exporter
- https://grafana.com/grafana/dashboards/13791
Feel free to fill an issue or create a pull request, I'll check it ASAP