kibana/x-pack/plugins/infra/public/hooks
Kibana Machine 251123c4bb
[8.8] [Infrastructure UI] Fix Lens charts for APM hosts (#156372) (#156390)
# Backport

This will backport the following commits from `main` to `8.8`:
- [[Infrastructure UI] Fix Lens charts for APM hosts
(#156372)](https://github.com/elastic/kibana/pull/156372)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"crespocarlos@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-05-02T13:56:06Z","message":"[Infrastructure
UI] Fix Lens charts for APM hosts (#156372)\n\n## Summary\r\n\r\nAfter
the implementation of the new API and host limit, all charts now\r\nload
only after the table is loaded. This PR changes the filters the\r\npage
currently passes to Lens, to pass only a list of host names, the\r\nsame
way Alerts and Logs tabs do it.\r\n\r\nThis also fixes a problem where
filters remove documents containing\r\nmetrics data.\r\n\r\n\r\n<img
width=\"772\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/2767137/235683301-35709698-49c2-4871-a724-2d2ca662f3f2.png\">\r\n\r\n<img
width=\"772\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/2767137/235683956-f7170213-afbd-400d-a190-a02087831af1.png\">\r\n\r\n\r\n\r\n\r\n###
How to test\r\n\r\n- Connect your local kibana to an oblt cluster\r\n-
Go to Hosts view\r\n- Filter by `service.name:
\"opbeans-java\"`","sha":"e9804277b20320e37dde3ceaaa6f9ae1b66e3b23","branchLabelMapping":{"^v8.9.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Metrics
UI","Team:Infra Monitoring
UI","release_note:skip","backport:prev-minor","Feature:ObsHosts","v8.9.0"],"number":156372,"url":"https://github.com/elastic/kibana/pull/156372","mergeCommit":{"message":"[Infrastructure
UI] Fix Lens charts for APM hosts (#156372)\n\n## Summary\r\n\r\nAfter
the implementation of the new API and host limit, all charts now\r\nload
only after the table is loaded. This PR changes the filters the\r\npage
currently passes to Lens, to pass only a list of host names, the\r\nsame
way Alerts and Logs tabs do it.\r\n\r\nThis also fixes a problem where
filters remove documents containing\r\nmetrics data.\r\n\r\n\r\n<img
width=\"772\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/2767137/235683301-35709698-49c2-4871-a724-2d2ca662f3f2.png\">\r\n\r\n<img
width=\"772\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/2767137/235683956-f7170213-afbd-400d-a190-a02087831af1.png\">\r\n\r\n\r\n\r\n\r\n###
How to test\r\n\r\n- Connect your local kibana to an oblt cluster\r\n-
Go to Hosts view\r\n- Filter by `service.name:
\"opbeans-java\"`","sha":"e9804277b20320e37dde3ceaaa6f9ae1b66e3b23"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.9.0","labelRegex":"^v8.9.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/156372","number":156372,"mergeCommit":{"message":"[Infrastructure
UI] Fix Lens charts for APM hosts (#156372)\n\n## Summary\r\n\r\nAfter
the implementation of the new API and host limit, all charts now\r\nload
only after the table is loaded. This PR changes the filters the\r\npage
currently passes to Lens, to pass only a list of host names, the\r\nsame
way Alerts and Logs tabs do it.\r\n\r\nThis also fixes a problem where
filters remove documents containing\r\nmetrics data.\r\n\r\n\r\n<img
width=\"772\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/2767137/235683301-35709698-49c2-4871-a724-2d2ca662f3f2.png\">\r\n\r\n<img
width=\"772\"
alt=\"image\"\r\nsrc=\"https://user-images.githubusercontent.com/2767137/235683956-f7170213-afbd-400d-a190-a02087831af1.png\">\r\n\r\n\r\n\r\n\r\n###
How to test\r\n\r\n- Connect your local kibana to an oblt cluster\r\n-
Go to Hosts view\r\n- Filter by `service.name:
\"opbeans-java\"`","sha":"e9804277b20320e37dde3ceaaa6f9ae1b66e3b23"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
2023-05-02 08:04:07 -07:00
..
use_alerts_count.test.ts [Infrastructure UI] Add Alerts tab into Hosts View (#149579) 2023-02-22 07:39:14 -07:00
use_alerts_count.ts [Infrastructure UI] Add Alerts tab into Hosts View (#149579) 2023-02-22 07:39:14 -07:00
use_alerts_history.ts [AO] - Add rule-specific fields, threshold, and reuse alert details package components (#154569) 2023-04-13 05:40:03 -07:00
use_boolean.ts [Infrastructure UI] Prepare saved view components to consume new view hooks (#155174) 2023-04-25 17:20:16 +02:00
use_breadcrumbs.ts [Infra Monitoring UI] Change infrastructure pages titles to use breadcrumbs #135874 (#140824) 2022-09-28 13:45:14 +02:00
use_bulk_get_saved_object.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_create_saved_object.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_delete_saved_object.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_document_title.tsx [Infra Monitoring UI] Change infrastructure pages titles to use breadcrumbs #135874 (#140824) 2022-09-28 13:45:14 +02:00
use_find_saved_object.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_get_saved_object.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_http_request.tsx [Infrastructure UI] Integrated the logs tab to the Hosts View (#152995) 2023-03-27 11:22:07 +01:00
use_intersection_once.ts [Infrastructure UI] KPI charts with Lens Embeddable (#154903) 2023-04-19 11:04:51 -03:00
use_kibana.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_kibana_index_patterns.mock.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_kibana_index_patterns.ts [Logs UI] Support Kibana index patterns in the Logs UI settings UI (#94849) 2021-04-20 00:04:25 +02:00
use_kibana_space.ts [Logs and Metrics UI] Make spaces optional plugin (#151053) 2023-02-15 15:33:15 +01:00
use_kibana_time_zone_setting.ts Use react query for loading preview chart data (#153045) 2023-03-22 09:59:48 +01:00
use_kibana_timefilter_time.tsx Remove deprecated es-query re-imports from data plugin (#134600) 2022-06-21 04:09:44 -07:00
use_lazy_ref.ts [Infrastructure UI] Save selected tab for Hosts View into url state (#151975) 2023-02-24 03:59:13 -07:00
use_lens_attributes.test.ts [Infrastructure UI] KPI charts with Lens Embeddable (#154903) 2023-04-19 11:04:51 -03:00
use_lens_attributes.ts [8.8] [Infrastructure UI] Fix Lens charts for APM hosts (#156372) (#156390) 2023-05-02 08:04:07 -07:00
use_log_view.mock.ts [Logs UI] Support inline Log Views in the UI (#152933) 2023-03-29 14:15:39 +01:00
use_log_view.ts [Logs UI] Make URL syncing optional in the Log View state machine (#154061) 2023-03-31 13:47:44 +01:00
use_logs_breadcrumbs.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_metrics_breadcrumbs.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_readonly_badge.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_sorting.tsx
use_trial_status.tsx fix all violations 2022-04-16 01:37:30 -05:00
use_update_saved_object.tsx fix all violations 2022-04-16 01:37:30 -05:00