Sign inSign up

visibilityspots/coinmarketcap-exporter

By visibilityspots

•Updated 3 days ago

coinmarketcap.com Prometheus Exporter

Buildkit cache
Image
0

8.7K

visibilityspots/coinmarketcap-exporter repository overview

⁠coinmarketcap-exporter

trivy docker-hub-description build status gitHub release docker image size docker pulls license FOSSA Status

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

Tag summary

Content type

Image

Digest

sha256:f5e22f6d2…

Size

28.7 MB

Last updated

3 days ago

docker pull visibilityspots/coinmarketcap-exporter