gardener / dashboard

Web-based GUI for Gardener installations.
Apache License 2.0
210 stars 103 forks source link

Expose Cluster Operations Events/Logs #26

Open vlerenc opened 6 years ago

vlerenc commented 6 years ago

Story

Motivation

We like to improve the way how we interact/access the Gardener/cluster logs. As an operator (of the week) I frequently have to check what the Gardener says/logs on a certain cluster and operation. Now with the reconciler, the logs grew and with all the other planned features, they will even grow more. Usually, we need to know something specific about a particular cluster, for a particular operation at a particular date/time (gardener/gardener#49). A central logging stack and UI (e.g. in the Garden cluster) will help me, but we can only expose it to project members if it supports multi-tenancy.

Acceptance Criteria

Implementation Proposal

We could use the Kubify-deployed logging stack and instead of showing the logs for an operation directly in the dashboard, the dashboard could generate a query for said logging stack that shows the right logs in the logging UI. Of course, as long as the logging stack doesn't support multi-tenancy, this would mean that the feature would be only available to the core team/admins, not to project members. This would be acceptable. The primary goal is to help our operators (of the week) and that solution would fully serve that purpose.

Definition of Done

grolu commented 4 years ago

We will leverage the terminal feature to achieve this. Also expose cluster insights like deployments, worker, pods, etc.

grolu commented 4 years ago

See also #8 - We want to allow the user to configure custom views to show custom resources, views etc. via the terminal feature on the details screen.

vlerenc commented 4 years ago

Isn't here the main problem, how to get to the cluster operation logs in the first place @grolu , cc @rfranzke?

grolu commented 4 years ago

Yes. And actually I moved all issues of this kind to in review. As in my point of view the terminal shortcuts feature (https://github.com/gardener/dashboard/pull/739) can be at least a temporary way to solve this @petersutter

petersutter commented 4 years ago

Well it depends on how this information is fetched / from where. @rfranzke is there an example anywhere?

rfranzke commented 4 years ago

Can you explain again? What do you want to fetch? What are cluster operation logs?

vlerenc commented 4 years ago

I think, this is a misunderstanding. This is a very old story or rather epic and it is most likely nothing that can be "just implemented". It will need planning and possibly more side changes.

So let's first get back to the goal:

That can be a creation, upgrade, reconciliation/maintenance operation. So the first question would be whether that's possible. Second how. Today, we have no longer GRM doing everything. Initiation happens there, but the rest is happening in the gardenlet, but that aside:

The log viewer idea (for the detailed logs) in the description is somewhat troubled, because end users should not be able to see shared resource logs like those of GRM or gardenlet, so is there another way?

You see, many open questions, because we haven't designed that into the solution from the beginning. We talked however about it and have done something with events, but then ran into TTL issues/discussed the matter, but I don't think conclusively, right?