-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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] Add timeslice metric indicator #168539
[SLO] Add timeslice metric indicator #168539
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/actionable-observability (Team: Actionable Observability) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've done a first pass on the UI, looking promising. I haven't looked at the backend yet
...observability/docs/openapi/slo/components/schemas/indicator_properties_timeslice_metric.yaml
Outdated
Show resolved
Hide resolved
...observability/docs/openapi/slo/components/schemas/indicator_properties_timeslice_metric.yaml
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability/public/pages/slo_edit/helpers/process_slo_form_values.ts
Outdated
Show resolved
Hide resolved
…as/indicator_properties_timeslice_metric.yaml Co-authored-by: Kevin Delemme <[email protected]>
…as/indicator_properties_timeslice_metric.yaml Co-authored-by: Kevin Delemme <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments but otherwise LGTM.
I've tested locally with different aggregation and all seems to work. I have not verified the math, but I trust the ES aggregation queries.
I think we can reuse the threshold
in the data preview chart, for the other indicator and use the objective.target
😏 But that can be another PR
...ck/plugins/observability/public/pages/slo_edit/components/custom_metric/metric_indicator.tsx
Show resolved
Hide resolved
x-pack/plugins/observability/public/pages/slo_edit/components/timeslice_metric/metric_input.tsx
Show resolved
Hide resolved
...servability/public/pages/slo_edit/components/timeslice_metric/timeslice_metric_indicator.tsx
Outdated
Show resolved
Hide resolved
...ns/observability/server/services/slo/aggregations/get_custom_metric_indicator_aggregation.ts
Show resolved
Hide resolved
...vability/server/services/slo/aggregations/get_timeslice_metric_indicator_aggregation.test.ts
Outdated
Show resolved
Hide resolved
...observability/server/services/slo/aggregations/get_timeslice_metric_indicator_aggregation.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability/server/services/slo/transform_generators/timeslice_metric.test.ts
Outdated
Show resolved
Hide resolved
…timeslice_metric/timeslice_metric_indicator.tsx Co-authored-by: Kevin Delemme <[email protected]>
…erators/timeslice_metric.test.ts Co-authored-by: Kevin Delemme <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
History
To update your PR or re-run it, just comment with: cc @kdelemme |
## Summary This PR adds the new Timeslice Metric indicator for SLOs. Due to the nature of these statistical aggregations, this indicator requires the budgeting method to be set to `timeslices`; we ignore the timeslice threshold in favor of the threshold set in the metric definition. Users can create SLOs based on the following aggregations: - Average - Min - Max - Sum - Cardinality - Percentile - Document count - Std. Deviation - Last Value Other notable feature include: - The ability to define an equation which supports basic math and logic - Users can define a threshold based on the equation for good slices vs bad slices <img width="800" alt="image" src="https://github.com/elastic/kibana/assets/41702/05af1ced-40cd-4a05-9dfc-e83ea7bfb5ab"> ### Counter Metric Example <img width="800" alt="image" src="https://github.com/elastic/kibana/assets/41702/05eb5a0f-3043-493d-8add-df0d3bf8de02"> CC: @lucasmoore --------- Co-authored-by: Kevin Delemme <[email protected]>
Summary
This PR adds the new Timeslice Metric indicator for SLOs. Due to the nature of these statistical aggregations, this indicator requires the budgeting method to be set to
timeslices
; we ignore the timeslice threshold in favor of the threshold set in the metric definition.Users can create SLOs based on the following aggregations:
Other notable feature include:
Counter Metric Example
CC: @lucasmoore