Skip to content
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

[Infrastructure UI] Optimization for Metric Threshold Rule for 7.17 #126545

Conversation

simianhacker
Copy link
Member

Summary

This PR fixes #126508 by refactoring all the reduces in favor of for/of. For 10K hosts, this rule would take ~23 seconds to execute, with this change it brings that down to ~6 seconds.

@simianhacker simianhacker marked this pull request as ready for review March 2, 2022 21:13
@simianhacker simianhacker added Feature:Metrics UI Metrics UI feature release_note:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels Mar 7, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@simianhacker simianhacker requested a review from jasonrhodes March 8, 2022 23:02
@simianhacker simianhacker merged commit 92b9e09 into elastic:7.17 Mar 9, 2022
@jugsofbeer
Copy link

I like the sound of this fix and the performance improvement

@simianhacker simianhacker deleted the issue-126508-optimization-for-metric-threshold-rule-7-17 branch April 17, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Metrics UI Metrics UI feature release_note:fix Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.17.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants