goksan / statusnook

Effortlessly deploy a status page and start monitoring endpoints in minutes
https://statusnook.com
MIT License
730 stars 15 forks source link

Feature request: Monitor retry frequency #13

Open addvanced opened 4 weeks ago

addvanced commented 4 weeks ago

When setting up monitoring, it would be nice to be able to add (optionally) a retry frequency. Right now, when a monitor responds with an error (whether it's due to a timeout, or a response code >= 400), and I have set up my monitor to attempt to get a successful response more than 1 time, it retries again immediately, which results in a monitor notification via a channel or email very shortly after the 1st attempt failed.

So, to avoid that, and to give the service a chance to get back on its feet again, before sending a new ping, it would be nice to either stick to the monitoring frequency that is set, or to add an option to define a re-attempt/retry frequency.

Maybe my monitoring frequency is set to 10s, but if I run into an error, I want it to retry every 5 seconds until I reached my attempts-limit.

goksan commented 4 weeks ago

Thanks for writing this up after our discussion.

I'll take a look at this 👍