Skip to content

Simple NEAR Lake indexer node that implements Prometheus endpoint for alerting

License

Notifications You must be signed in to change notification settings

khorolets/near-lake-pulse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages