Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested recording rule generation for different SLO time spans? #1248

Open
GrgDev opened this issue Aug 22, 2024 · 1 comment
Open

Nested recording rule generation for different SLO time spans? #1248

GrgDev opened this issue Aug 22, 2024 · 1 comment

Comments

@GrgDev
Copy link

GrgDev commented Aug 22, 2024

I have a use case where we have a ton of metrics data. We want to do SLOs up to a 4 week period, but having those queries regularly query 4 weeks worth of raw data is very compute heavy. It would be nice if the generated recording rules for longer time span SLO queries were based on shorter term recording rule time spans. For example, making the generated 4 week SLO recording rule based on the 1 day SLO recording rule instead of the raw data.

Is this possible with the current implementation of Pyrra?

@metalmatze
Copy link
Member

This sounds like Thanos downsampling might be worth looking into.
Right now, Pyrra's recording rules take into account all of the 4w of data. That's how the recording rule works.
I think there was a discussion at some point to split the 4W queries up, but I can't find it right now, and I don't think it went anywhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants