ergoplatform / oracle-core

Core off-chain component of Oracle Pools
Apache License 2.0
62 stars 37 forks source link

Easiest monitoring solution #266

Closed greenhat closed 1 year ago

greenhat commented 1 year ago

Although we have #53 we need some quick and dirty solution for monitoring ASAP.

The easiest solution I see is to make a bash script that gets the current block height and the last pool box height from /poolStatus endpoint and checks if it's no more than the epoch length blocks behind. It should return a non-zero exit code if it's falling behind.

This script could then be used to send notifications, alerts, etc. I personally would like to push an alert to PagerDuty, so I'll make a second script for that.

greenhat commented 1 year ago

We have Prometheus metrics now.