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
git clone https://github.com/masknetgoal634/near-prometheus-exporter
cd near-prometheus-exporter
sudo docker build -t near-prometheus-exporter .
sudo docker run -dit \
--restart always \
--name near-exporter \
--network=host \
-p 9333:9333 \
near-prometheus-exporter:latest /dist/main -accountId <YOUR_POOL_ID>
By default the exporter serves on :9333
at /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 |
This project is licensed under the MIT License - see the LICENSE file for details.