elastic / kibana

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

Show the _slm/status somewhere in Kibana Managment #148241

Open stouch opened 1 year ago

stouch commented 1 year ago

Describe the feature: Like some other users, I encountered this issue : [slm] Snapshots are just ignored when scheduled, but manual _execute works - #5 by stouch

Even if it can look like a dummy issue, I think it would be nice to get the _slm/status status information somewhere in the Snaphot Managment page of Kibana (/app/management/data/snapshot_restore/snapshots).

Right now, when your slm status is STOPPED, nothing alerts you. Or maybe i missed it ?

Describe a specific use case for the feature: It would avoid this kind of problem : [slm] Snapshots are just ignored when scheduled, but manual _execute works - #5 by stouch


Proposal

  1. Changes to the "Snapshots" tab

Image Image

  1. Changes to the "Policies" tab

Image Image

elasticmachine commented 1 year ago

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

alisonelizabeth commented 1 year ago

Hi @stouch We do show the policy status in the details flyout of each policy. Is this what you had in mind?

Image

stouch commented 1 year ago

Hi @stouch We do show the policy status in the details flyout of each policy. Is this what you had in mind?

Image

No I mean the _slm/status (it may be stopped but impossible to know it from the GUI) I had to make an API request to get the status : https://discuss.elastic.co/t/slm-snapshots-are-just-ignored-when-scheduled-but-manual-execute-works/321429/3

elasticmachine commented 2 months ago

Pinging @elastic/kibana-management (Team:Kibana Management)

alisonelizabeth commented 1 month ago

I have updated the issue description with the design that we plan to implement.

SoniaSanzV commented 2 weeks ago

I have some doubts about this issue. In the policies tab the proposal is to display the snapshot lifecycle management (SLM) status for each policy, but from what I've learned from reading the documentation and testing on the console, the SLM status is common for every policy.

// Query
GET _slm/status

// Response. Options [RUNNING, STOPPING, or STOPPED]
{
  "operation_mode": "RUNNING"
}

You can start and stop SLM but it’ll affect the whole lifecycle. So, the info proposed in the mocks will be redundant since it would always be the same status for all the policies: Image

Another important thing to have in mind is that when the SLM is stopped, the policy doesn’t even run and it won’t be considered a failure. It’ll not be reflected in the snapshot list, it would just be skipped.

SoniaSanzV commented 2 weeks ago

Hi @jovana-andjelkovic! in the current implementation of detail for an snapshot we have a tooltip for the partial state. Do we wanna keep it? I think is useful information. In case do wanna keep it, should we also display it in the list?

Current behavior: Image

Image

How this would look like if we keep it in the new implementation: Image Image

Image Image

jovana-andjelkovic commented 2 weeks ago

@SoniaSanzV great catch! Yes let's keep the tooltip and add it to the table view as well. If any other states have tooltips as well, let's keep them.

Let's maybe add tooltip on hover of the "status" component in table, rather than adding in the question mark icon.

SoniaSanzV commented 2 days ago

Blocked waiting for re-design