1
0
Fork 0
mirror of https://github.com/bonovoxly/coinmarketcap-exporter.git synced 2025-12-16 10:54:07 +00:00
No description
Find a file
Bill Cawthra af8165cc39
Merge pull request #27 from visibilityspots/master
update(script): increased ttl to 3hours to meet free API creds
2022-11-16 15:35:11 -05:00
.circleci CircleCI config update 2019-12-03 10:17:06 -05:00
gke added gke settings 2018-01-22 20:43:11 -05:00
img added image 2017-12-03 13:01:59 -05:00
prometheus-compose Now uses a local coinmarket exporter for testing 2019-12-03 10:18:22 -05:00
coinmarketcap.py update(script): increased ttl to 3hours to meet free API creds 2022-11-16 21:14:23 +01:00
Dockerfile Fixed Dockerfile 2021-04-23 03:55:49 +03:00
LICENSE Initial commit 2017-11-20 21:49:29 -05:00
README.md Fixed typo in README.md 2021-04-24 00:48:53 +03:00
requirements.txt Merge branch 'master' into api-key 2019-12-11 06:29:55 -05:00

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:9101:
docker run --rm -p 127.0.0.1:9101:9101 coinmarketcap-exporter:latest
  • Run it interactively:
docker run --rm -it --entrypoint=/bin/sh -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