Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.72 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.72 KB

Near Exporter

Prometheus exporter for Near Protocol nodes. Forked from masknetgoal634.

This service exports various metrics from Near node for consumption by Prometheus. It uses JSON-RPC interface to collect the metrics. Inspired by Ethereum Prometheus Exporter

Build

./build.sh

Usage

By default the exporter serves on :9333 at /metrics.

Exported Metrics

Name Description
near_block_number The number of most recent block
near_epoch_block_produced_number The number of blocks produced in epoch
near_epoch_block_expected_number The number of block expected in epoch
near_seat_price The current seat price
near_current_stake The current stake of a given account id
near_sync_state The current sync state of node
near_epoch_start_height The epoch start height
near_version_build{build,version} The version build of the near node
near_dev_version_build{build,version} The version build of of the public rpc node
near_next_validator_stake{account_id,public_key,shards} The next stake of epoch
near_current_validator_stake{account_id,num_produced_blocks,num_expected_blocks,public_key,shards,slashed} The current stake of epoch
near_current_proposals_stake{account_id,public_key} The current stake proposals
near_prev_epoch_kickout{account_id,reason,produced,expected,stake_u128,threshold_u128} Previous epoch kicked out validators

License

This project is licensed under the MIT License - see the LICENSE file for details.