Skip to content

[8.9] [Alerting] Fix the charts on Log Threshold Rule Alert Detail page (#160321)#160661

Merged
kibanamachine merged 1 commit into8.9from
backport/8.9/pr-160321
Jun 27, 2023
Merged

[8.9] [Alerting] Fix the charts on Log Threshold Rule Alert Detail page (#160321)#160661
kibanamachine merged 1 commit into8.9from
backport/8.9/pr-160321

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.9:

Questions ?

Please refer to the Backport tool documentation

…60321)

## Summary

This PR fixes #160320 by changing the chart from the `CriterionPreview`
chart, borrowed from the Log Threshold Rule, to an embedded Lens
visualization that represents the correct document count in one chart. I
also took the liberty of changing the ratio chart to use the same
technique for consistency sake.

## Count with multiple conditions

### Before

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/6c6a27ea-f8e4-491f-8a12-261d0ed13dcb">

### After

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/9b18ebe9-e911-4e40-8911-bee55cd7d245">

## Count with multiple conditions and a group by

### Before

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/7b9462da-55b2-4f54-ba09-3c55b372ae2c">

### After

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/b268caed-242f-430a-ade0-14bf491ec899">

## Ratio with multiple conditions

### Before

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/55b8dfa2-7789-433b-bffd-e412bdb08b3f">

### After

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/a029bf8a-3ba1-4e16-87bd-097ebc526a4e">

## Ratio with multiple conditions and a  group by

### Before

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/61ddf1e9-c5ad-4546-a539-15a51ee563c0">

### After

<img width="736" alt="image"
src="https://github.com/elastic/kibana/assets/41702/15b0aaa3-4ef9-47f6-baba-24869feae77e">

(cherry picked from commit a8322d2)
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
infra 1469 1471 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 2.0MB 2.0MB +3.4KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
infra 119.7KB 119.7KB +7.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 13 15 +2
infra 53 52 -1
securitySolution 415 419 +4
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 14 16 +2
infra 63 62 -1
securitySolution 496 500 +4
total +5

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

cc @simianhacker

@kibanamachine kibanamachine merged commit 2f5b730 into 8.9 Jun 27, 2023
@kibanamachine kibanamachine deleted the backport/8.9/pr-160321 branch June 27, 2023 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants