elastic / kibana

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

[Infrastructure UI] Inventory > Kubernetes Pods view : show dashboards link #149616

Closed roshan-elastic closed 1 year ago

roshan-elastic commented 1 year ago

 

📖 Description

Goal : Ensure all k8s users know they can view a variety of dashboards within Analytics.

Assuming the k8s user clicks through to the k8s pods view, we will then show a generic k8s dashboards link through to the 'dashboards' list page pre-filtered for all k8s dashboards (the user may/may not have any but that's OK).

Dashboards link shows as pink the first time someone sees it

image

Note : Please remove 'new window' icon from this (@kkurstak - could you remove this from the design and update screenshot here? See @formgeist's comment)

Once it has been seen once, it will revert to a blue colour as per the below:

Dashboards link returns to blue

image

Note : Please remove 'new window' icon from this (@kkurstak - could you remove this from the design and update screenshot here? See @formgeist's comment)

✔️ Acceptance criteria

What must this feature have?

1. Must Have

Must be delivered in this issue in order for the release to be valuable

Name Description Rational Notes
Kubernetes Dashboard link within k8s pods view - - Point towards [link](https://edge-lite-oblt.kb.us-west2.gcp.elastic-cloud.com/app/dashboards#/list?_g=()&s=kubernetes%20tag:(managed)) @neptunian - please correct as applies.

2. Should Have

Name Description Rational Notes
Highlight link first time viewed, then revert to standard design - This will greatly help educate users it is available (and then will become subtle once they've seen it) -
FullStory Telemetry - When does the k8s link show (and is it purple or blue)? - - I don't believe we need a specific custom event here - probably just the correct class so we can capture this in FS *a.euiLink[class="accent"][data-test-subj="inventory-kubernetesDashboard-link"]**
FullStory Telemetry - When does someone click on the dashboards link (and which colour was it)? - - I don't believe we need a specific custom event here - probably just the correct class so we can capture this in FS *.a.euiLink[class="primary"][data-test-subj="inventory-kubernetesDashboard-link"]**

3. Could Have

Would be nice to have but not critical

Name Description Rational Notes
- - - -

4. Will Not Have (for now)

Explicitly will not be looked at within this issue

Name Description Rational Notes
User-level storage We will not attempt to store whether someone has seen the link or not at a user-level - it will be browser level Too complex for the effort -
elasticmachine commented 1 year ago

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

formgeist commented 1 year ago

Just gonna leave a comment here about the placement and the button action. In the case that the expands the History, the button will move up with it. That seems a little clunky to me because the button seems attached to the history section.

CleanShot 2023-01-26 at 19 43 43@2x

Furthermore, it appears that the button will open the Dashboards in a new window by showing the popout icon. I would recommend that it will go to the Dashboards link directly. So we can remove the popout icon. I think we just show the new badge and leave the button the same style, not depending on a click action from the user.

@kkurstak Happy to go over this in our sync tomorrow, just wanted to put my feedback in writing here as well 👍

roshan-elastic commented 1 year ago

Cheers @formgeist - input appreciated! Catching up with @kkurstak...

roshan-elastic commented 1 year ago

Hey @formgeist,

Just caught up with @kkurstak and one of the things I liked about the suggested icon is that it's indicating we're going out of 0lly. A little bit like what's going on here with the APM and Uptime links:

image

I wonder if there's a way that we can illustrate to the user that this is going to a separate part of the product (i.e. not make them think it's part of a seamless 011y experience)?

Will leave this with @kkurstak but that's one of the things I liked about the existing design...maybe there's a nice way to do that?

formgeist commented 1 year ago

@roshan-elastic I understand that we want to express that this is "outside" the Observability solution, but it's still within Kibana, and we're deliberately linking to it as part of the experience.

The popout icon is meant to indicate a new window and an exit out of Kibana. The usage in the panel tabs is not consistent, but I understand this is meant to indicate a different interaction than clicking the rest of the tabs which would show the content in the panel content.

In the more recent design, those APM and Uptime options were actually moved into their own separate action buttons. We just never got them implemented that way 😊

Hope my feedback helps in why I think we shouldn't have the link show a popout - primarily because we shouldn't open it in a new window.

roshan-elastic commented 1 year ago

Cheers @formgeist. To confirm my understanding:

That correct? If so, OK with me!

roshan-elastic commented 1 year ago

Update

This issue is ready

@kkurstak - could you check the top comment in this issue and fill in the bits with your name (updated designs)? Very minor.

kkurstak commented 1 year ago

I've spoken with @formgeist last Friday about this - the positioning of the link will stay as in this design. As for the icon - it will be suggesting the user is going "outside of" Observability - consistently with what's happening in other parts of the interface.

crespocarlos commented 1 year ago

@kkurstak, just want to confirm if the position of the button remains the same when the visualization is switched to Table View.

Image

@roshan-elastic , based on what I'm reading, the icon will stay. Could we remove this note to avoid confusion?

Note : Please remove 'new window' icon from this (@kkurstak - could you remove this from the design and update screenshot here? See @formgeist's https://github.com/elastic/kibana/issues/149616#issuecomment-1406561317)

roshan-elastic commented 1 year ago

Hey @crespocarlos - thanks for asking.

@kkurstak, just want to confirm if the position of the button remains the same when the visualization is switched to Table View.

Your call @kkurstak. I'd imagine it will stay the same?

based on what I'm reading, the icon will stay. Could we remove this note to avoid confusion? When we mentioned removing the icon, it's just removing the new window icon. The pink "TRY IT" badge only show the first time the user sees this. Once they've seen it once, the "TRY IT" will disappear.

crespocarlos commented 1 year ago

Just gonna leave a comment here about the placement and the button action. In the case that the expands the History, the button will move up with it. That seems a little clunky to me because the button seems attached to the history section.

Not only will it move up, but the new buttons can overlap the waffle map

Image

kkurstak commented 1 year ago

Hey, thanks for the mentions :) @crespocarlos, is there a way we could place the links on a white card component [extra small shadow], so the links [at least the once below] would travel on it and be always well-visible - what I mean:

Solution (4)
crespocarlos commented 1 year ago

@kkurstak , something like this?

https://user-images.githubusercontent.com/2767137/216331389-ec0bfb26-458b-4faa-a8e4-ccc954817887.mov

kkurstak commented 1 year ago

Yes, exactly :) Awesome @crespocarlos!

roshan-elastic commented 1 year ago

Oh man - that looks niccccccccccccce. Great team work you two!

roshan-elastic commented 1 year ago

Hey @crespocarlos - can we close this one out?

roshan-elastic commented 1 year ago

Hey @crespocarlos ,

Just see this deployed on 8.7 now on [edge](https://edge-lite-oblt.kb.us-west2.gcp.elastic-cloud.com/app/metrics/inventory?waffleFilter=(expression:%27%27,kind:kuery)&waffleTime=(currentTime:1676458892217,isAutoReloading:!f)&waffleOptions=(accountId:%27%27,autoBounds:!t,boundsOverride:(max:1,min:0),customMetrics:!(),customOptions:!(),groupBy:!(),legend:(palette:cool,reverseColors:!f,steps:10),metric:(type:cpu),nodeType:pod,region:%27%27,sort:(by:name,direction:desc),timelineOpen:!f,view:map)):

Just realised that the 'k8s' dashboards link is showing even when 'hosts' are selected in the 'show' drop-down (rather than just when 'k8s pods' are selected):

Image

If we wanted to have this only show when 'kubernetes pods' is selected, is this still possible (as a bug fix)? Should I create a bug and prioritise?

Sorry, I may have missed this in the preview videos...

@smith - Not sure on process here so just want to make sure I do this right

crespocarlos commented 1 year ago

Good catch! I'll work on a fix for this. I'll create a ticket. Since it's bug fix, I assume we can backport it to 8.7

crespocarlos commented 1 year ago

https://github.com/elastic/kibana/issues/151273

roshan-elastic commented 1 year ago

Bosh!