Skip to content

[8.x] [Stack Monitoring] Remove 'observability' and 'observabilityShared' plugin dependencies (#203492)#204912

Merged
gbamparop merged 1 commit intoelastic:8.xfrom
gbamparop:backport/8.x/pr-203492
Dec 19, 2024
Merged

[8.x] [Stack Monitoring] Remove 'observability' and 'observabilityShared' plugin dependencies (#203492)#204912
gbamparop merged 1 commit intoelastic:8.xfrom
gbamparop:backport/8.x/pr-203492

Conversation

@gbamparop
Copy link
Copy Markdown
Contributor

Backport

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

Questions ?

Please refer to the Backport tool documentation

…lugin dependencies (elastic#203492)

### Summary
A recent [bug](elastic#199902) that
affected some of the pages in Stack Monitoring was caused by changes
related to the locators of the logs-related apps.

The goal of this PR is to reduce the number of Observability
dependencies that could potentially cause issues in the app by removing
the `observability` and `observabilityShared` plugin dependencies from
the `monitoring` plugin.

Currently, the `monitoring` plugin is [categorised as
observability](https://github.com/elastic/kibana/blob/main/x-pack/plugins/monitoring/kibana.jsonc#L7)
but when the dependency on the `infra` plugin is removed, it can be
marked as a `platform` plugin.

### Notes for reviewers
- The components used to render the header menu as well as the
[use_track_metric](https://github.com/elastic/kibana/pull/203492/files#diff-7e39fc60ca80ee551d824ca97f9f879e3364a368a5736cf9178b5943a12ca7a7)
hook were copied from the `observabilityShared` plugin
- There should be no UX and functionality changes in the stack
monitoring header
- Usage collection could be verified by searching for UI counters sent
by the cluster created for this PR, once telemetry has been sent

### Testing
The stateful environment deployed by this PR includes logs and metrics
for stack monitoring. Please make sure to select a larger time range
(e.g. last 14 days).

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 7e2f67e)
@gbamparop gbamparop added the backport This PR is a backport of another PR label Dec 19, 2024
@gbamparop gbamparop enabled auto-merge (squash) December 19, 2024 10:57
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. labels Dec 19, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Dec 19, 2024

💚 Build Succeeded

  • Buildkite Build
  • Commit: a59c9a2
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-204912-a59c9a2c5d4a

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
monitoring 496 500 +4

Async chunks

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

id before after diff
monitoring 534.0KB 538.4KB +4.4KB

Page load bundle

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

id before after diff
monitoring 25.8KB 25.7KB -33.0B
Unknown metric groups

async chunk count

id before after diff
monitoring 5 6 +1

ESLint disabled line counts

id before after diff
monitoring 22 25 +3

References to deprecated APIs

id before after diff
monitoring 2 4 +2

Total ESLint disabled count

id before after diff
monitoring 29 32 +3

History

@gbamparop gbamparop merged commit 2e7e516 into elastic:8.x Dec 19, 2024
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 ci:project-deploy-observability Create an Observability project Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants