Skip to content
coinmarketcap.com Prometheus Exporter
Branch: master
Clone or download
Latest commit 474e501 Jan 2, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci added circleci integration Jul 1, 2018
gke added gke settings Jan 23, 2018
img added image Dec 3, 2017
prometheus-compose
Dockerfile fix: simplified docker image Dec 29, 2018
LICENSE Initial commit Nov 21, 2017
README.md docs: readme Dec 29, 2018
coinmarketcap.py fix: added bind address Dec 29, 2018
requirements.txt fix: fixed requirements Dec 29, 2018

README.md

coinmarketcap-exporter

A prometheus exporter for https://coinmarketcap.com/. Provides Prometheus metrics from the API endpoint of Coinmarketcap, such as US price, Bitcoin price, trading volume, etc. Blog post found here.

When running this exporter with both Prometheus and Grafana, you can create dashboards like:

coinmarketcap-single-dashboard

Developing

  • Build the image:
docker build -t coinmarketcap-exporter:latest .
  • Run it while listening on localhost:9100:
docker run --rm -p 127.0.0.1:9101:9101 coinmarketcap-exporter:latest
  • Run it interactively:
docker run --rm -it --entrypoint=/bin/bash -p 127.0.0.1:9101:9101 -v ${PWD}:/opt/coinmarketcap-exporter coinmarketcap-exporter:latest
  • Then to launch:
python coinmarketcap.py

Testing the Prometheus Grafana Stack

  • In the prometheus-compose directory, run:
docker-compose up

Thanks and Links

You can’t perform that action at this time.