Coder Social home page Coder Social logo

coinmarketcap-exporter's Introduction

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

If you find this useful and want to contribute:

  • BTC: 161a2z4A5J5ndVyytBXroN8hGcf6Cc8RA5
  • Ethereum: 0x9de200ba61af4a58c9fced2c1334110087a75f51
  • Litecoin: LMGHysobMGv9dWUg1s6CDYP78HSasX8gTp

coinmarketcap-exporter's People

Contributors

bonovoxly avatar vegasbrianc avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.