cmc-crypto-rank100-exporter

command module
v0.0.0-...-c5caeda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

CMC Crypto Rank 100 Exporter

A Prometheus exporter for rank 100 cryptocurrency from CoinMarketCap(CMC).

Prerequisites

Before you begin, ensure that you have obtained your CoinMarketCap API key. If you haven't, go to the official CoinMarketCap website to get it.

Usage

  1. Update the "Dockerfile" and replace YOUR_CMC_API_KEY with your actual CMC API key.

  2. Build the Docker image with the following command:

docker build -t IMAGE_NAME . `
Metrics Format

Metric name is cryptocurrency_price_usd, labels are name and symbol.

cryptocurrency_price_usd{name="Bitcoin", symbol="BTC"} 30000

Contributing

Welcome to contribute via issues and PRs!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL