gatus icon indicating copy to clipboard operation
gatus copied to clipboard

Schedule heartbeat checks after startup sooner than the interval

Open aristaeus opened this issue 4 months ago • 1 comments

Describe the feature request

Currently after restarting gatus, external endpoint heartbeats are checked only after the interval has passed. I would like some way to force it to check heartbeats sooner, e.g. when the time since the last push equals the heartbeat, or at a fixed time of day.

Why do you personally want this feature to be implemented?

I have some low frequency heartbeats being monitored by gatus (daily backup scripts pushing that they ran successfully). This works well - except if gatus is restarted (i.e. I keep screwing with the config) it resets the timer and the heartbeats won't be checked for another day.

How long have you been using this project?

No response

Additional information

This would probably cause problems for external endpoints with a short interval that miss their push while gatus is down.

aristaeus avatar Sep 01 '25 12:09 aristaeus

I have an external-endpoint health check on a 25hr interval for daily backups. I also backup gatus every night for the historical data. My backup script always takes the service down for backup integrity. I tested the 25hr backup endpoint last night by disabling the backup script. Gatus has a health check on a 25hr interval that has not had a response in 30hrs but is still showing healthy. This is odd behavior to me and is not outlined in the documentation. If I hadn't found this issue I would have no idea of the cause.

perchbirdd avatar Oct 19 '25 15:10 perchbirdd