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

[SLO] Fix timeslice rollup data calculation #197064

Closed
kdelemme opened this issue Oct 21, 2024 · 1 comment · Fixed by #196942
Closed

[SLO] Fix timeslice rollup data calculation #197064

kdelemme opened this issue Oct 21, 2024 · 1 comment · Fixed by #196942
Assignees
Labels
Team:obs-ux-management Observability Management User Experience Team

Comments

@kdelemme
Copy link
Contributor

🍒 Summary

As explained on Slack, when we compute the isGoodSlice field on the rollup document, we set it to 0 whenever there is no events during that bucket. This makes the SLO tank anytime we don't have data for some period of time, which is not coherent with how the occurrences budgeting method interprets no data, i.e. sum(events) + 0 = sum(events).

Ideally, the outcome of a slice should not be a boolean (isGoodSlice) but one of: good, bad, no_data. Doing this would require some migration and breaking change that we can't deal with at the moment.

By changing isGoodSlice to 1 whenever there is no data, we would compute the SLI as:
1 - (total - good) / total slices in time window = (1 - (value_count_agg(isGoodSlice) - sum_agg(isGoodSlice)) / total slices in time window)`

Ideally, we would compute the sli as: sum_agg(slice = good) / total slices in time window

@kdelemme kdelemme self-assigned this Oct 21, 2024
@kdelemme kdelemme added the Team:obs-ux-management Observability Management User Experience Team label Oct 21, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:obs-ux-management Observability Management User Experience Team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants