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

[Metrics UI] Fix p95/p99 charts and alerting error #65579

Merged

Conversation

simianhacker
Copy link
Member

Summary

This PR fixes #65561 by restoring changes to the series chart that was overridden in a bad merge. This also add support for p95/p99 aggregations for alerts. There was a fatal exception that was being thrown when the user tried to create an alerts while the user had percentiles selected in Metrics Explorer.

Checklist

Delete any items that are not applicable to this PR.

@simianhacker simianhacker requested a review from a team as a code owner May 6, 2020 21:21
@simianhacker simianhacker added Feature:Metrics UI Metrics UI feature release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services labels May 6, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

Copy link
Contributor

@Zacqary Zacqary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, I'd just like to see test coverage on P95, also small code style nit

Copy link
Contributor

@Zacqary Zacqary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, looks like the percentile aggregators aren't showing up in the Alert Flyout for me:

Screen Shot 2020-05-07 at 10 57 10 AM

They are available in the metrics explorer, but when I select it and try to create an alert using the Actions menu:
Screen Shot 2020-05-07 at 10 57 36 AM

@simianhacker
Copy link
Member Author

@Zacqary Did you refresh the browser? It's showing up for me.

image

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@simianhacker simianhacker requested a review from Zacqary May 7, 2020 21:53
@simianhacker
Copy link
Member Author

@Zacqary This is ready for another look

Copy link
Contributor

@Zacqary Zacqary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good, doing another test to confirm that the frontend works

@simianhacker simianhacker merged commit 1c6e6cb into elastic:master May 8, 2020
simianhacker added a commit to simianhacker/kibana that referenced this pull request May 8, 2020
* [Metrics UI] Fix p95/p99 charts and alerting error

- Fixes elastic#65561

* Fixing open in visualize for percentiles

* Adding test for P95; refactoring to use first consitently
simianhacker added a commit to simianhacker/kibana that referenced this pull request May 8, 2020
* [Metrics UI] Fix p95/p99 charts and alerting error

- Fixes elastic#65561

* Fixing open in visualize for percentiles

* Adding test for P95; refactoring to use first consitently
gmmorris added a commit to gmmorris/kibana that referenced this pull request May 11, 2020
* master: (58 commits)
  [Drilldowns][chore] import dashboard url generator from plugin contract (elastic#64628)
  fix double flyouts in add panel flow (elastic#65861)
  Point 7.x to 7.9.0 in .backportrc.json
  Mount ui/new_platform applications in same div structure as Core (elastic#63930)
  [Uptime] Settings threshold validation (elastic#65454)
  Fix edit alert flyout to update initialAlert after edit (elastic#65359)
  Fix anomalies display on focused APM service map (elastic#65882)
  [SIEM][Detection Engine] Increases the template limit for ECS mappings
  [SIEM][CASE] Moves functional tests from "legacyEs" to "Es" (elastic#65851)
  [Metrics UI] Fix p95/p99 charts and alerting error (elastic#65579)
  [ML] Add job timing stats to anomaly jobs (elastic#65696)
  restore index pattern management data-test-subj's (elastic#64697)
  [Discover] Prevent whitespace wrapping of doc table header (elastic#52861)
  [SIEM] Fixes a CSS issue with Timeline field truncation (elastic#65789)
  Skipping failing tests. elastic#65867 elastic#65866 elastic#65865
  [Discover] Deangularize the hits counter and create a react component (elastic#65631)
  Tsvb less update (elastic#65467)
  [TSVB] Remove remaining lodash.set usage (elastic#65846)
  [Uptime] Add `a11y` tests (elastic#65514)
  [Uptime] Enable loading on monitor list (elastic#65670)
  ...
simianhacker added a commit that referenced this pull request May 11, 2020
* [Metrics UI] Fix p95/p99 charts and alerting error

- Fixes #65561

* Fixing open in visualize for percentiles

* Adding test for P95; refactoring to use first consitently

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
simianhacker added a commit that referenced this pull request May 11, 2020
* [Metrics UI] Fix p95/p99 charts and alerting error

- Fixes #65561

* Fixing open in visualize for percentiles

* Adding test for P95; refactoring to use first consitently

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@simianhacker simianhacker deleted the issue-65561-fix-percentiles branch April 17, 2024 15:32
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:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Metrics UI] P95/P99 charts not rendering in Metrics Explorer and Alerts throws exeception
4 participants