elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.78k stars 8.19k forks source link

[SLO]Ability to create SLO based on an existing visualization #175004

Open mgiota opened 8 months ago

mgiota commented 8 months ago

Relates to https://github.com/elastic/kibana/issues/174996

🍒 Summary

As part of the On-Week project I looked into how we can generate an SLO from an existing visualization. The idea is to add a new Create SLO option to the Lens visualization, which links to the slo creation form prefilled with the data view, query, filter etc. This is going to be useful for SREs, since they won't have to do the double work of defining again the queries, data view etc.

Screenshot 2024-01-17 at 12 24 33

Implementation

The challenge I can already see here, is how we can map the different Lens functions into the proper SLI definition (indicator type, queries etc). There is already the option Explore Data in Discover in the Lens embeddable, so can check how they do it and reuse stuff from there)

Screenshot 2024-01-09 at 01 11 04

✔️ Acceptance criteria

Thanks to @elkargig and @framsouza for the great idea!

cc @grabowskit

elasticmachine commented 8 months ago

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