Giter Site home page Giter Site logo

primexz / bitcoind-exporter Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 48 KB

A Prometheus Exporter for a Bitcoin Fullnode running with bitcoind

License: GNU General Public License v3.0

Go 99.41% Dockerfile 0.59%
bitcoin bitcoin-core docker prometheus prometheus-exporter bitcoind go golang

bitcoind-exporter's Introduction

Bitcoind Prometheus Exporter โ‚ฟ

Prometheus metrics for a bitcoin node made simple

Buid License

๐Ÿ” About the project

A Prometheus Exporter, which provides a deep insight into a Bitcoin full node.

โš™๏ธ Configuration

This tool is configured via environment variables. Some environment variables are required and some activate additional functionalities.

Variable Description Required Default
RPC_ADDRESS The RPC address for the Bitcoin full node, e.g. http://127.0.0.1:8332 โœ…
RPC_USER The user name that was defined in the Bitcoin Node configuration โœ…
RPC_PASS The password that was set in the Bitcoin Node configuration โœ…
ZMQ_ADDRESS The address to the ZeroMQ interface of the Bitcoin Fullnode. This variable is required to determine the transcation rates. e.g. 127.0.0.1:28333 โŒ
FETCH_INTERVAL The interval at which the metrics are to be recalculated. โŒ 10
METRIC_PORT The port via which the metrics are provided. โŒ 3000
LOG_LEVEL The log level for the service โŒ info

๐Ÿ’ป Grafana Dashboard

The official Grafana dashboard can be found here: https://grafana.com/grafana/dashboards/21351

๐Ÿณ Run with Docker

Docker-CLI

docker run -d --name bitcoind_exporter \
  -e RPC_ADDRESS=http://127.0.0.1:8332 \
  -e RPC_USER=mempool \
  -e RPC_PASS=mempool \
  -e ZMQ_ADDRESS=127.0.0.1:28333 \
   ghcr.io/primexz/bitcoind-exporter:latest

๐Ÿš€ Docker-Compose

vim docker-compose.yml
version: "3.8"
services:
  bitcoind_exporter:
    image: ghcr.io/primexz/bitcoind-exporter:latest
    environment:
      - RPC_ADDRESS=http://127.0.0.1:8332
      - RPC_USER=mempool
      - RPC_PASS=mempool
      - ZMQ_ADDRESS=127.0.0.1:28333
    restart: always
docker-compose up -d

bitcoind-exporter's People

Contributors

primexz avatar

Stargazers

Surenic avatar  avatar

Watchers

 avatar

Forkers

pxrzival

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.