gatus icon indicating copy to clipboard operation
gatus copied to clipboard

Increase data retention to 30 days

Open mdraijer opened this issue 3 years ago • 6 comments

For the uptime badges (1h, 24h, 7d), is it possible to also support a month or 30d? Maybe even 1y?

mdraijer avatar Jul 07 '21 09:07 mdraijer

Would love this feature

sahil87 avatar Oct 21 '21 05:10 sahil87

@TwiN Do you have any idea about a timeline for this improvement?

mdraijer avatar Feb 15 '22 16:02 mdraijer

By the way, @TwiN regarding your change of the title of this issue: I see that sometimes the data is retained for at least 30 days, sometimes a lot longer. But in some cases a lot shorter. Probably depending on the 'MaximumNumberOfResults' and 'MaximumNumberOfEvents'? (couldn't find that in the documentation, didn't search the code yet)

So I assume that you meant to say "guarantee retention to 30 days; may be a lot longer if few events happen"?

mdraijer avatar Feb 17 '22 12:02 mdraijer

@mdraijer yeah since people can set their own interval, and these interval can be extremely short (1ms), it'd be a bad idea to save for the past 30 days. What I'll do instead is make MaximumNumberOfResults configurable.

TwiN avatar Feb 19 '22 17:02 TwiN

Agreed, would be sufficient and a neat solution to have that value configurable. Would that also make it possible to get badges for 30 days / 1 month?

mdraijer avatar Feb 21 '22 06:02 mdraijer