-
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
Metrics App and Metrics Inventory taking very long time to load #58551
Comments
This was addressed with #58553 and should be released in a patch update. We also tested a patched build against this cluster to confirm the fix will indeed resolve this issue. |
@simianhacker |
@cpmoore Did it fail or just timeout? Are there any errors in the logs? |
@simianhacker No errors in the log, the request just eventually times out after 30000ms |
@cpmoore My guess is you're gonna need to look at your custer's capacity. The query that backs this request uses composite aggregations to gather up all the data and send it to the browser. It might be that your cluster is too small for the amount of data you're working with. Depending on where the timeout is happening, Kibana or Elasticsearch, you might also need to increase the values for those settings. |
@simianhacker
This request returns almost instantly. (The response says Shouldn't the metric inventory take a similar amount of time as the above request? |
@simianhacker |
@cpmoore No apologies necessary... Sorry for the bug, hopefully that will be release soon and you can move past this issue. |
@simianhacker
@sorantis
Kibana version: 7.5.1
Elasticsearch version: 7.5.1
Server OS version: ESS GCP
Browser version: Chrome Version 79.0.3945.130 (Official Build) (64-bit)
Browser OS version: MacOS Sierra
Original install method (e.g. download page, yum, from source, etc.): ESS
Describe the bug:
Metrics Inventory is ~1500 hosts, data is shipped by Metricbeat
Metrics Inventory and Metrics Explorer are taking upwards of 70 seconds to load. When using the developer tools in chrome the GraphQL query appears to be be the long running request.
Currently running on 6 x 64GB gcp.data.highio.1
Once the Metrics Inventory is loaded it works pretty well, but then when you navigate to Metrics Explorer the slow loading happens again.
When you switch back to Metrics Inventory it happens again, in other words every time you navigate to either.
Steps to reproduce:
Expected behavior:
Expect the Metrics Inventory and Metrics Explorer to load quickly, less than 5 seconds.
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The query/code that appears to be taking the most time is https://github.com/elastic/kibana/blob/master/x-pack/plugins/infra/server/lib/adapters/fields/framework_fields_adapter.ts#L46-L60
This code compiles a list of all the
event.dataset
values and then uses that to filter down the list of available fields. This is only necessary because Metricbeat is shipping every possible field in the index template. The correct fix is to stop shipping all the fields but only the fields for the active modules.The text was updated successfully, but these errors were encountered: