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

Question: how to use multiple error budget windows? #488

Open
r3code opened this issue Mar 23, 2023 · 1 comment
Open

Question: how to use multiple error budget windows? #488

r3code opened this issue Mar 23, 2023 · 1 comment

Comments

@r3code
Copy link

r3code commented Mar 23, 2023

Is it possible to use different error budget windows for SLOs?

For example my first service needs 7 day window and the second one 28 days.

For me it looks like I should have two sets of sloth specs and build them as

    # 7 day budget
    sloth generate --input="services/shop/widget_get.slo.yml" --default-slo-period=7d --slo-period-windows-path=./windows 
    sloth generate --input="services/shop/cart_add.slo.yml" --default-slo-period=7d --slo-period-windows-path=./windows 
    # 28 days budget
    sloth generate --input="services/parcel/prediction_get.slo.yml" --default-slo-period=28d --slo-period-windows-path=./windows 

And we can not have one SLO in two windows as alerts do not differentiated by a window. So sloth It generates an alert spec with the same alert name but with a different formula according to the window. We can't merge them.

@jkutes
Copy link

jkutes commented Apr 25, 2023

I'm as well very interested in solution for this,

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