Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eburghar/bitcoin-exporter

Expose bitcoin core metrics in prometheus format
https://github.com/eburghar/bitcoin-exporter

bitcoin prometheus-exporter rust

Last synced: 4 days ago
JSON representation

Expose bitcoin core metrics in prometheus format

Awesome Lists containing this project

README

        

# bitcoin-exporter

Serve bitcoind core metrics under `/metrics` path.

A direct rewrite of [bitcoin-prometheus-exporter](https://github.com/jvstein/bitcoin-prometheus-exporter) in rust.

Use a forked [rust-bitcoincore-rpc](https://git.itsufficient.me/rust/bitcoincore-rpc)
with applied [pr157](https://github.com/rust-bitcoin/rust-bitcoincore-rpc/pull/157) and
[pr171](https://github.com/rust-bitcoin/rust-bitcoincore-rpc/pull/171) and missing rpc calls implemented.

```
bitcoin-exporter 0.5.4

Usage: bitcoin-exporter [-c ] [-v]

Export bitcoin core metrics to prometheus format

Options:
-c, --config configuration file
-v, --verbose more detailed output
--help display usage information
```

The configuration accepts the following keys. `host` and `bind` are optional. `user`, `password` and `host` represent
the bitcoind server rpc parameters.

```yaml
user: user
password: changeme
host: 'http://localhost:8332'
bind: '127.0.0.1:9898'
```

## Grafana dashboard

![grafana dashboard](dashboard/dashboard.png?raw=true "Grafana dashboard")