khorolets / near-lake-pulse

Simple NEAR Lake indexer node that implements Prometheus endpoint for alerting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

near-lake-pulse

It is a simple NEAR Lake indexer that just prints the block heights and exposes some Prometheus-friendly metrics:

  • latest indexed block height
  • number of blocks indexed

It is supposed to be used for healthcheck and check that the data we've reindexed to the AWS S3 buckets is consistent and doesn't have any gaps.

And also it can send alert notifications via TelegramBot (optional) if blocks per second rate drop to zero.

Usage

Don't forget you need to have ~/.aws/credentials with your AWS credentials

Basic:

./target/release/near-lake-pulse <chain_id> --block-height <BLOCK_HEIGHT>

Mainnet:

./target/release/near-lake-pulse mainnet --block-height 61941713

Testnet

./target/release/near-lake-pulse mainnet --block-height 85635752

With alerts:

./target/release/near-lake-pulse --telegram-token 123456789:blablabla --chat-id 1234567 --http-port 3030 mainnet --block-height 85635752

About

Simple NEAR Lake indexer node that implements Prometheus endpoint for alerting

License:GNU General Public License v3.0


Languages

Language:Rust 100.0%