note: this project is a fork of caheredia/poolboy which publishes an html table containing p2pool metrics. it has been forked and adapted to serve metrics in a format digestble by prometheus and renamed to reflect the purpose of the fork.
a prometheus exporter of p2pool metrics from your local monero p2pool, a decentralized pool for monero mining.
this requires that you have a rust build toolchain installed
cargo install --git https://github.com/grenade/p2pool-exporter
curl \
--location \
--output /tmp/p2pool-exporter-x86_64-unknown-linux-gnu.tar.gz \
--url https://github.com/grenade/p2pool-exporter/releases/download/v0.2.0/p2pool-exporter-x86_64-unknown-linux-gnu.tar.gz
sudo tar \
--verbose \
--extract \
--gzip \
--file /tmp/p2pool-exporter-x86_64-unknown-linux-gnu.tar.gz \
--directory /usr/local/bin \
p2pool-exporter
note:
${HOME}/.cargo/bin/p2pool-exporter if you built from source with the cargo install command above/usr/local/bin/p2pool-exporter if you installed a release binaryp2pool-exporter \
--data-directory /var/lib/p2pool \
--listen-ip 127.0.0.1 \
--listen-port 18090 \
--metrics-path /metrics
⚠️ it is important that the value of --data-directory should match the path used by p2pool's --data-api parameter.
point your browser at:
❯ p2pool-exporter --help
a prometheus exporter of p2pool metrics
Usage: p2pool-exporter [OPTIONS]
Options:
-h, --help Print help
-V, --version Print version
p2pool:
-d, --data-directory <data directory> the p2pool data directory [default: /var/lib/p2pool]
http server:
-i, --listen-ip <ip address> the ip address to listen on [default: 127.0.0.1]
-p, --listen-port <port> the port to listen on [default: 18090]
-m, --metrics-path <metrics path> the path portion of the url to prometheus metrics [default: /metrics]
11 activities