sloth icon indicating copy to clipboard operation
sloth copied to clipboard

feat: adjustable rule_group interval

Open wbollock opened this issue 1 year ago • 2 comments

This allows for more expensive SLO recording rules by letting users create a custom Prometheus rule_group.interval, as rule group default or per type of rule.

https://prometheus.io/docs/prometheus/latest/configuration/recording_rules/#rule_group

Now instead of all rule groups using the default global evaluation interval, a custom interval can be set on all three types of recording rules for an SLO.

If no interval is set then the global default will be assumed, matching current Sloth behavior.

Resolves: #367

Edit: I didn't touch the kubernetes operator side and probably need adjustments there

wbollock avatar Jul 03 '23 13:07 wbollock

@slok when you have a chance could you take a look and let me know what you think?

wbollock avatar Oct 09 '23 17:10 wbollock

looks like an amazing feature, cc @slok

anosulchik avatar Aug 22 '24 20:08 anosulchik