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.`,
/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.