blockpane / tenderduty

Notification tool for Cosmos/Tendermint validators, sends alerts when missing pre-commits
MIT License
157 stars 226 forks source link

feat: add dead man's switch for td app itself #67

Closed czarcas7ic closed 1 year ago

czarcas7ic commented 1 year ago

I added a function that pings a user provided healthcheck URL at a user provided interval. This is useful to determine that the tenderduty application itself is live, and pagerduty notifications can be set if these healthcheck pings fail for a certain period of time.

I tested this locally and appears to function as intended.

alijnmerchant21 commented 2 months ago

@czarcas7ic @blockpane In the config file:

# Healthcheck settings (dead man's switch)
healthcheck:
  # Send pings to determine if the monitor is running?
  enabled: yes
  # URL to send pings to.
  ping_url: 
  # Rate in which pings are sent in seconds.
  ping_rate: 60

What does the ping url indicate? Does it refer to discord webhook for example, or it points to where node is running?

czarcas7ic commented 2 months ago

Whatever service you are using to determine that the tenderduty machine is up, not the actual node

alijnmerchant21 commented 2 months ago

Whatever service you are using to determine that the tenderduty machine is up, not the actual node

Thanks @czarcas7ic I'm using discord, so I added web-hook link. But it doesn't send any info. Any idea what could be wrong?

czarcas7ic commented 2 months ago

I would try something like better uptime and see if inputting the health check url works