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

[Lens] Create curated suggested visualisations based on index pattern #100642

Open
Tracked by #167089
shahzad31 opened this issue May 26, 2021 · 5 comments
Open
Tracked by #167089

[Lens] Create curated suggested visualisations based on index pattern #100642

shahzad31 opened this issue May 26, 2021 · 5 comments
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@shahzad31
Copy link
Contributor

shahzad31 commented May 26, 2021

Lens in empty view suggests that Drop Fields here to start

We should help beginner users with more curated visualisations templates in empty view.

For example if user selected synthetics index patterns, in that case we can have some sort of cards/pills views in the empty state, to highlighted curated visualizations.

We can suggest create Up/Down monitor histogram, visualize monitor duration over time.

Same goes for Rum index pattern, we can suggest user to visualizae web core vitals, performance distributions.

We can leverage index pattern fields meta data, or we can also ask respective apps in observability to register those templates with lens.

Uptime app can register those pre built templates with lens regarding up/down ping histogram.

APM/UX app can register templates regarding apm/rum data.

@shahzad31 shahzad31 added Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure labels May 26, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
Copy link
Contributor

As discussed offline:
I think I'm a fan of exposing APIs so solutions can register their black box suggestion helpers - it shifts the burden of domain knowledge to the place which needs to deal with it already, keeping Lens as general purpose as possible.

I'm imagining an API like this:

type Contract = {
  datasources: {
    indexpattern: {
      registerSuggestionHelper: (helper: IndexPatternSuggestionHelper) => void;
    }
  }
};

interface IndexPatternSuggestionHelper {
  id: string;
  getPreferredOperation(indexPattern: IndexPattern, field: IndexPatternField) => undefined | { operationType: OperationType; title: string };
}

Index pattern datasource will call getPreferredOperation from each helper on each field and use the returned result if available instead of the default choices today (top values, median, date histogram)

@drewpost
Copy link

It's a workflow we want to have in the Exploratory view as well so perhaps it can benefit both places.

@stratoula stratoula added enhancement New value added to drive a business result impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Feb 15, 2023
@timductive timductive added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. and removed impact:needs-assessment Product and/or Engineering needs to evaluate the impact of the change. labels Oct 4, 2023
@ruflin
Copy link
Contributor

ruflin commented Oct 25, 2023

Part of this is that solutions can register helpers, but I think we can also be more opinionated around the data stream naming scheme index patterns. If Lens is opened for metrics-*-* we know these users are interested in metrics and eventually will only have TSDS data streams. For logs-*-*, we can focus on logs use cases as the default.

@crespocarlos
Copy link
Contributor

crespocarlos commented Nov 30, 2023

Just came across this ticket, I'd like to share some thoughts on the topic because it's one UX improvement we see in infra.

Uptime app can register those pre built templates with lens regarding up/down ping histogram.
APM/UX app can register templates regarding apm/rum data.

In the same way integration packages register dashboards and some other assets, one idea is to introduce a new saved object type that would store these built-in metrics/templates. So teams responsible for those packages could contribute to more formulas, as well as the community.

In fact, I was brainstorming some ideas and put together some thoughts on a doc: https://docs.google.com/document/d/1JCjIHh4mkXE7Q46iiUolodkvbwCNXlisGlSOUOsZKYQ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

10 participants