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

[8.x] [Stack Monitoring] Switch Logs Explorer locator for Discover locator in Stack Monitoring (#200546) #202137

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…in Stack Monitoring (elastic#200546)

## Summary

Closes elastic#200256 and
elastic#200218.

## Overview of changes

- The call to `logsShared.logViews.defineInternalLogView()` is removed
as Log Views will be deprecated.
- The logs indices that were previously defined via
`defineInternalLogView()` are now exposed via
`externalConfig.logsIndices`
- As part of this change `ui.logs` from `config` is now exposed to
browser. Given this is just an index pattern I don't believe there are
any security concerns here.
- `getIndexPatterns()` has been moved to common (this makes it look like
there's a lot of file changes here).
- The Logs Explorer locator is swapped for the Discover locator using an
ad-hoc data view.
   - This is hidden if Discover isn't available.

The behaviour here should match exactly what we had before, as the same
indices are constructed from `getIndexPatterns()` and we apply the same
`query`.

Stack Monitoring reviewer: The path changes from moving
`getIndexPatterns()` were automated so there shouldn't be any issues,
but given it's used extensively please check everything works as
expected.

## Screenshots

![Screenshot 2024-11-18 at 11 59
45](https://github.com/user-attachments/assets/59b61421-c6f9-4df0-87c5-c67ca732c89f)

![Screenshot 2024-11-18 at 12 00
15](https://github.com/user-attachments/assets/5a934883-1c35-4551-a045-705b28dfcbb7)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3e538d6)
@kibanamachine kibanamachine merged commit dde108c into elastic:8.x Nov 28, 2024
11 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
monitoring 494 495 +1

Async chunks

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

id before after diff
monitoring 533.4KB 533.4KB -18.0B

Page load bundle

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

id before after diff
monitoring 24.4KB 25.8KB +1.4KB

cc @Kerry350

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants