Terra Oracle add-on for nodemonitorgaiad.
oraclemonitor.sh produces logs that look like:
2020-04-14 23:49:44+00:00 status=synced blockheight=1602395 nmissedvotes=12737 pctvotes=.95 amtukrw=779719662
2020-04-14 23:50:14+00:00 status=synced blockheight=1602400 nmissedvotes=12738 pctvotes=1.00 amtukrw=779716162
2020-04-14 23:50:44+00:00 status=synced blockheight=1602405 nmissedvotes=12738 pctvotes=1.00 amtukrw=779712662The log line entries are:
- status can be {scriptstarted | error | catchingup | synced} 'error' can have various causes, typically the gaiad process is down
- blockheight blockheight from lcd call
- nmissedvotes total number of missed votes
- pctvotes percentage of last n votes from blockheight as configured in nodemonitor.sh
- amtukrw amount of ukrw on feeder address
The related template is intended to be deployed alongside nodemonitorgaiad. Triggers are only for pctvotes and amtukrw, and as well for no data received on 'status'.