Skip to content

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

Merged
simianhacker merged 6 commits intoelastic:7.17from
simianhacker:issue-126508-optimization-for-metric-threshold-rule-7-17
Mar 9, 2022
Merged

[Infrastructure UI] Optimization for Metric Threshold Rule for 7.17#126545
simianhacker merged 6 commits intoelastic:7.17from
simianhacker:issue-126508-optimization-for-metric-threshold-rule-7-17

Conversation

@simianhacker
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@kibana-ci
Copy link
Copy Markdown

💚 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
Copy Markdown

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