Skip to content

Latest commit

 

History

History
57 lines (40 loc) · 1.94 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.94 KB

Parity Exporter

A Parity exporter for Prometheus.

This parity exporter sets focus on scraping metrics from a large cluster of parity nodes. Therefore the metrics it scrapes are few but each of the metrics are unique to the single parity node. To get a network overview and an overview of the cryptoeconomics use the Eth Exporter

Configuration

The configuration is in YAML, an example with common options:

---
rpcUrl: 'http://localhost:8545'
port: '9997'
Name Description
rpcUrl Optional. The rpcUrl to the Parity client. Default http://localhost:8545.
port Optional. The port to expose the metrics at. Default 9997.

Exported Metrics

All metrics are exported as gauges.

Metric Meaning Labels
parity_up Indicates if the Parity client is up or not
parity_version The Parity client version
parity_active_peers How many active peers does the Parity client have
parity_connected_peers How many connected peers does the Parity client have
parity_max_peers The max peers that the Parity client can have
parity_sync_status The amount of blocks that the Parity client is behind
parity_current_block The current block of the Parity client

Docker Image

To run the Parity exporter on Docker, you can use the honeylogic/parity_exporter image. It exposes port 9997 and expects the config in /app/config.yml. To configure it, you can bind-mount a config from your host:

$ docker run -p 9997:9997 -v /path/on/host/config.yml:/app/config.yml honeylogic/parity_exporter

Specify the config as the CMD:

$ docker run -p 9997:9997 -v /path/on/host/config.yml:/config/config.yml honeylogic/parity_exporter --config /config/config.yml

Contributing

npm build to build.

npm start to run.