PowerLoom / snapshotter-lite

https://powerloom.dev
Apache License 2.0
10 stars 10 forks source link

Feat/telegram health monitoring #14

Closed Seth-Schmidt closed 7 months ago

Seth-Schmidt commented 8 months ago
Issue #13

Checklist

Current behaviour

Snapshotter-lite does not have a proper health check endpoint in core-api, and it does not currently have any means of externally reporting issues to node operators.

New expected behaviour

The /health endpoint in snapshotter.core-api requests data from the powerloom-reporting-service (if enabled) to determine the health status of the node, and it will return a failed status code if there are any issues with the node. It checks for the last time the node has pinged the reporting service, as well as if there are any issues reported to the service.

Additionally, the node operator now has the option to provide a telegram chat-id on startup to enable automatic telegram notifications if any issues arise while snapshotting. This feature requires the telegram-reporting-host endpoint to be active and set in the .env.

Change logs

Added

Deployment Instructions

Deployment pattern has not changed, but there is now a prompt to enter an optional telegram chat-id on startup.
xadahiya commented 7 months ago

@Seth-Schmidt let's deploy this service on some URL, finish the final testing with latest code, and ship this.

Seth-Schmidt commented 7 months ago

Closing with replacement: #20