Skip to content

sourcenetwork/cosmos_liveness_monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cosmos-liveness-monitor

cosmos-liveness-monitor is a lightweight utility used to monitor whether a Cosmos node is receiving new block events. It exposes the node status through the '/liveness' http endpoint, if the node seems healthy returns 200, otherwise returns 500.

The monitor listens to a Node's NewBlockHeader events, and tracks the amount of time elapsed between two blocks. If the the monitor does not a block within the given tolerance, the check fails and the /liveness endpoint returns 500. Furthermore, the node also exposes a Prometheus Gauge which can be used for alerting.`,

Endpoints

/liveness: returns 200 if the monitor has observed a new block within the given tolerance, other returns 500 /metrics: exposes a single Prometheus Gauge, networkoperator.livenessmonitor.liveness, which is 1.0 if the has received a block within the given tolerance, 0.0 if it hasn't.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published