-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Infra UI] Make metrics explorer have a better initial experience #39552
Comments
Pinging @elastic/infra-logs-ui |
I agree this is a problem. Showing "Document count" hides the metrics dropdown and it's not clear to users they must select a new statistics method in order to pick a metric. Instead I suggest we have a shortlist of hardcoded default metrics ( |
+1 on exploring this direction, Ron. |
I've opened a draft PR here: #39787
Please have a look and comment. The solution is so much simpler than what @roncohen proposed that it is trivial to implement. It might not cover all use cases (I would guess it does cover something like 98% but I don't have the data to back that up), so I can continue to work on a more clever heuristic. |
that certainly is simple. Ideally, we'd avoid showing metrics in the metrics-selector if users don't have them (similar to the problem of the dropdown). They might not be using kubernetes or docker for example. But I like how simple this is from a code perspective. |
@roncohen Agreed, finding out which metrics are present is definitely one of the next steps, and it will help us in all areas of the Infra UI. |
Right now the initial experience of the metrics explorer forces you to choose a metric before you can see any charts, and you have to choose that metric from a dropdown filled with mostly irrelevant metric selections. In other words, it's fairly painful to get to the first graph(s).
The best solution may be to limit the available metrics in the dropdown to only ones that we think are relevant for producing graph results, e.g. similar to something like the work done (and being discussed) in #36843. But while we wait for that more perfect solution, we should try to find something that makes this experience slightly better for 7.3 if possible.
@tbragin had an idea to default to the "Document Count" instead of "Average", so that users with metricbeat data will immediately see a graph showing them that the explorer is working.
UPDATE: Based on conversation below and elsewhere, we are going to go with a solution where we choose a metric we expect to be there in most cases, look to see if it exists in a subset of recent documents, and if not, fall back to the current behavior.
AC:
Note: To start, let's just search recent documents for
system.load.1
first, and then look for whatever you think is the most commondocker
metric if we don't findsystem.load.1
. We can extend from there once it's working.The text was updated successfully, but these errors were encountered: