Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Pull request Compare This branch is 11 commits ahead of honeylogic-io:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
src
test
.dockerignore Baseline 0.1.0 Jan 25, 2019
.gitignore
.prettierrc.yml Baseline 0.1.0 Jan 25, 2019
.travis.yml
Dockerfile
LICENSE Adjust license Jan 25, 2019
README.md Modify Readme Jan 25, 2019
config.good.yml
config.yml
docker-compose.yml
package-lock.json
package.json
tsconfig.json
tslint.yml Baseline 0.1.0 Jan 25, 2019

README.md

Parity Eth Exporter

A Parity exporter for Prometheus.

This parity exporter sets focus on a network overview and an overview of the cryptoeconomics. To get insights of each nodes status(as sync time, current block) use the Parity Exporter

Configuration

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

---
rpcUrl: 'http://localhost:8545'
port: '9998'
Name Description
rpcUrl Optional. The rpcUrl to the Parity client. Default http://localhost:8545.
port Optional. The port to expose the metrics at. Default 9998.
addresses Optional. The address and alias of an address' balance that you would like to track.

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_transaction_queue The current transaction queue
parity_address_balance Balance of addresses that you specified in the config
parity_gas_price Current gas price in Wei
parity_total_block_difficulty Total difficulty of a block
parity_block_gas_used Block gas usage
parity_block_size Block size
parity_block_gas_limit Block gas limit
parity_block_latest_miner The latest block miner

Docker Image

To run the Parity exporter on Docker, you can use the honeylogic/ethereum-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 9998:9998 -v /path/on/host/config.yml:/app/config.yml honeylogic/parity_exporter

Specify the config as the CMD:

$ docker run -p 9998:9998 -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.

You can’t perform that action at this time.