Skip to content

narniec/near-prometheus-exporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Near Prometheus Exporter

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

Usage

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.

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

License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 94.9%
  • Dockerfile 5.1%