-
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 UI / Logs UI] Remove field filtering in Source API call #58553
[Metrics UI / Logs UI] Remove field filtering in Source API call #58553
Conversation
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 Reviewing on behalf of @elastic/logs-metrics-ui
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM aside from the compiler warnings. There's a noticeable speedup when loading the sources.
); | ||
const dataSets = buckets.map(bucket => bucket.key.dataset); | ||
const modules = dataSets.reduce((acc, dataset) => { | ||
const module = first(dataset.split(/\./)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compiler complains about these lodash functions still being imported after the removal of their usage.
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…stic#58553) * [Metrics UI / Logs UI] Remove field filtering in Source API call. * Fixing type_check issues
…stic#58553) * [Metrics UI / Logs UI] Remove field filtering in Source API call. * Fixing type_check issues
) (#58615) * [Metrics UI / Logs UI] Remove field filtering in Source API call. * Fixing type_check issues
) (#58616) * [Metrics UI / Logs UI] Remove field filtering in Source API call. * Fixing type_check issues
Summary
This PR fixes a performance issue with the Metrics UI on slow or large clusters. This removes the code used to filter down the fields to just the active Metricbeat/Filebeat modules. On larger clusters this query can take up to 40-70 seconds to complete making the UI essentially unusable. This change will affect ALL the field selection dropdown throughout the Metrics and Logs UI. After this PR the user will see EVERY field listed in the Metricbeat and Filebeat mappings.
Checklist
Delete any items that are not applicable to this PR.
Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsThis was checked for keyboard-only and screenreader accessibilityThis renders correctly on smaller devices using a responsive layout. (You can test this in your browserThis was checked for cross-browser compatibility, including a check against IE11Possible Related Issues
Logs UI GraphQL data source request takes 40 seconds #58166
Metrics App and Metrics Inventory taking very long time to load #58551
@sorantis @roncohen