Skip to content

Mtt6300/cc-exporter

Repository files navigation

cc-exporter

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.

Run

$ 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.

Customization

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 separate coin 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)

Install with Helm

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

Dashboard

Grafana dhasboard page: https://grafana.com/grafana/dashboards/13791

Foo

All related links

Contributing , idea ,issue

Feel free to fill an issue or create a pull request, I'll check it ASAP

About

Prometheus CoinCap Api Metrics Exporter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published