Implementing the retries enhancement #56
Labels
area:monitor
Everything related to monitors
feature-request
Request for new features to be added
type:enhance-existing
feature wants to enhance existing monitor
I've been looking at the code responsible for sending notifications when a service goes down mentioned in #21.
It looks like this would be quite reasonable to implement, as such I am writing a draft and am curious to see if ends up being any good.
I've had the issue many times now since using Uptime Kuma that my services get marked as down and I get a notification, when it was just a pinging issue.
I would actually try and implement this myself if that is welcome, however I am currently quite busy and don't know if I can follow up in a timely enough matter before someone else picks it up.
But making a draft is potentially helpful for the developer who ends up implementing it.
The steps would pretty much include (if I'm not mistaken, I only had 30 min or so to look at the codebase)
2
, indicating that the service is currently "disrupted")0
if the service has not reachedmaxRetries
. I believe this should go here in the catch section of the polling try blockuptime-kuma/server/model/monitor.js
Line 112 in b3bff8d
uptime-kuma/server/model/monitor.js
Line 121 in b3bff8d
I also never worked with bean, so it's possible that a manual data migration would be necessary if a new field is added to the database. The documentation lists that bean does not have migration?
Does anyone know how @louislam is solving the migration task?
I think this would describe the minimum valuable product. Using the configured monitor ping interval doesn't require too many changes and requires little modification in the codebase.
What do you think?
Also I apologize that this issue is such a mess, I accidentally hit enter instead of backspace when editing the title so I essentially had to write the draft while the issue already existed 😢
The text was updated successfully, but these errors were encountered: