-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled #196387
[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled #196387
Conversation
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
…-services-dont-show-without-apmmetrics-being-installed
…-services-dont-show-without-apmmetrics-being-installed
...s/observability_solution/apm/public/components/routing/templates/apm_main_template/index.tsx
Outdated
Show resolved
Hide resolved
...s/observability_solution/apm/public/components/routing/templates/apm_main_template/index.tsx
Outdated
Show resolved
Hide resolved
...s/observability_solution/apm/public/components/routing/templates/apm_main_template/index.tsx
Show resolved
Hide resolved
...s/observability_solution/apm/public/components/routing/templates/apm_main_template/index.tsx
Show resolved
Hide resolved
...gins/observability_solution/infra/public/components/shared/templates/infra_page_template.tsx
Outdated
Show resolved
Hide resolved
…-services-dont-show-without-apmmetrics-being-installed
…-services-dont-show-without-apmmetrics-being-installed
Let's go ahead and merge this solution then 🚀 Here are some answers, @roshan-elastic.
Yes, service views were already handling APM signals (metrics or traces) before, and in this PR, we’re adding logs as well.
Yes, the specific inventories appear empty because no data has been detected from those sources.
Yes, that’s exactly what will happen, and the same applies to Infra. |
…-services-dont-show-without-apmmetrics-being-installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. It is working as expected.
I've found some room for improvement, I'm a bit concerned the the number of calls to /summary
endpoint. Let me know if you have any questions.
...gins/observability_solution/infra/public/components/shared/templates/infra_page_template.tsx
Outdated
Show resolved
Hide resolved
…-services-dont-show-without-apmmetrics-being-installed
x-pack/plugins/observability_solution/infra/public/components/asset_details/template/page.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/infra/public/components/asset_details/template/page.tsx
Outdated
Show resolved
Hide resolved
…asset_details/template/page.tsx Co-authored-by: Cauê Marcondes <[email protected]>
…-services-dont-show-without-apmmetrics-being-installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit and I think it's good to be merged
...ck/plugins/observability_solution/infra/public/components/shared/templates/no_data_config.ts
Outdated
Show resolved
Hide resolved
…-services-dont-show-without-apmmetrics-being-installed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
cc @iblancof |
Starting backport for target branches: 8.16, 8.x |
…M is enabled (elastic#196387) ## Summary Closes elastic#196084. We want to show Service, Host and Container views instead of onboarging when EEM is enabled, entityCentricExperience advanced setting is enabled and the entity has logs. >[!NOTE] The visibility of the noDataConfig is evaluated at a generic template level for all 3 entity types. To manage visibility based on entity-specific information (checking for logs), we had to add checks within these templates. While this isn’t an ideal solution, it’s temporary, as we expect upcoming generic entity views will eventually allow us to remove this logic. ## Implementation details There's no need to check if EEM is enabled, as the used `dataStreams` information won’t return any results if EEM is disabled. This makes the extra check unnecessary. |Entity|Before|After| |-|-|-| |Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)| |Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)| --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Cauê Marcondes <[email protected]> (cherry picked from commit 586330b)
…M is enabled (elastic#196387) ## Summary Closes elastic#196084. We want to show Service, Host and Container views instead of onboarging when EEM is enabled, entityCentricExperience advanced setting is enabled and the entity has logs. >[!NOTE] The visibility of the noDataConfig is evaluated at a generic template level for all 3 entity types. To manage visibility based on entity-specific information (checking for logs), we had to add checks within these templates. While this isn’t an ideal solution, it’s temporary, as we expect upcoming generic entity views will eventually allow us to remove this logic. ## Implementation details There's no need to check if EEM is enabled, as the used `dataStreams` information won’t return any results if EEM is disabled. This makes the extra check unnecessary. |Entity|Before|After| |-|-|-| |Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)| |Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)| --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Cauê Marcondes <[email protected]> (cherry picked from commit 586330b)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…when EEM is enabled (#196387) (#196838) # Backport This will backport the following commits from `main` to `8.16`: - [[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)](#196387) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Irene Blanco","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T10:21:48Z","message":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/196084.\r\n\r\nWe want to show Service, Host and Container views instead of onboarging\r\nwhen EEM is enabled, entityCentricExperience advanced setting is enabled\r\nand the entity has logs.\r\n\r\n>[!NOTE]\r\nThe visibility of the noDataConfig is evaluated at a generic template\r\nlevel for all 3 entity types.\r\nTo manage visibility based on entity-specific information (checking for\r\nlogs), we had to add checks within these templates. While this isn’t an\r\nideal solution, it’s temporary, as we expect upcoming generic entity\r\nviews will eventually allow us to remove this logic.\r\n\r\n## Implementation details\r\n\r\nThere's no need to check if EEM is enabled, as the used `dataStreams`\r\ninformation won’t return any results if EEM is disabled. This makes the\r\nextra check unnecessary.\r\n\r\n|Entity|Before|After|\r\n|-|-|-|\r\n\r\n|Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)|\r\n\r\n|Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"586330bd0b557640faa3e019201592f67d180aa4","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"title":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled","number":196387,"url":"https://github.com/elastic/kibana/pull/196387","mergeCommit":{"message":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/196084.\r\n\r\nWe want to show Service, Host and Container views instead of onboarging\r\nwhen EEM is enabled, entityCentricExperience advanced setting is enabled\r\nand the entity has logs.\r\n\r\n>[!NOTE]\r\nThe visibility of the noDataConfig is evaluated at a generic template\r\nlevel for all 3 entity types.\r\nTo manage visibility based on entity-specific information (checking for\r\nlogs), we had to add checks within these templates. While this isn’t an\r\nideal solution, it’s temporary, as we expect upcoming generic entity\r\nviews will eventually allow us to remove this logic.\r\n\r\n## Implementation details\r\n\r\nThere's no need to check if EEM is enabled, as the used `dataStreams`\r\ninformation won’t return any results if EEM is disabled. This makes the\r\nextra check unnecessary.\r\n\r\n|Entity|Before|After|\r\n|-|-|-|\r\n\r\n|Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)|\r\n\r\n|Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"586330bd0b557640faa3e019201592f67d180aa4"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196387","number":196387,"mergeCommit":{"message":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/196084.\r\n\r\nWe want to show Service, Host and Container views instead of onboarging\r\nwhen EEM is enabled, entityCentricExperience advanced setting is enabled\r\nand the entity has logs.\r\n\r\n>[!NOTE]\r\nThe visibility of the noDataConfig is evaluated at a generic template\r\nlevel for all 3 entity types.\r\nTo manage visibility based on entity-specific information (checking for\r\nlogs), we had to add checks within these templates. While this isn’t an\r\nideal solution, it’s temporary, as we expect upcoming generic entity\r\nviews will eventually allow us to remove this logic.\r\n\r\n## Implementation details\r\n\r\nThere's no need to check if EEM is enabled, as the used `dataStreams`\r\ninformation won’t return any results if EEM is disabled. This makes the\r\nextra check unnecessary.\r\n\r\n|Entity|Before|After|\r\n|-|-|-|\r\n\r\n|Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)|\r\n\r\n|Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"586330bd0b557640faa3e019201592f67d180aa4"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Irene Blanco <[email protected]>
…hen EEM is enabled (#196387) (#196839) # Backport This will backport the following commits from `main` to `8.x`: - [[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)](#196387) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Irene Blanco","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T10:21:48Z","message":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/196084.\r\n\r\nWe want to show Service, Host and Container views instead of onboarging\r\nwhen EEM is enabled, entityCentricExperience advanced setting is enabled\r\nand the entity has logs.\r\n\r\n>[!NOTE]\r\nThe visibility of the noDataConfig is evaluated at a generic template\r\nlevel for all 3 entity types.\r\nTo manage visibility based on entity-specific information (checking for\r\nlogs), we had to add checks within these templates. While this isn’t an\r\nideal solution, it’s temporary, as we expect upcoming generic entity\r\nviews will eventually allow us to remove this logic.\r\n\r\n## Implementation details\r\n\r\nThere's no need to check if EEM is enabled, as the used `dataStreams`\r\ninformation won’t return any results if EEM is disabled. This makes the\r\nextra check unnecessary.\r\n\r\n|Entity|Before|After|\r\n|-|-|-|\r\n\r\n|Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)|\r\n\r\n|Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"586330bd0b557640faa3e019201592f67d180aa4","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"title":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled","number":196387,"url":"https://github.com/elastic/kibana/pull/196387","mergeCommit":{"message":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/196084.\r\n\r\nWe want to show Service, Host and Container views instead of onboarging\r\nwhen EEM is enabled, entityCentricExperience advanced setting is enabled\r\nand the entity has logs.\r\n\r\n>[!NOTE]\r\nThe visibility of the noDataConfig is evaluated at a generic template\r\nlevel for all 3 entity types.\r\nTo manage visibility based on entity-specific information (checking for\r\nlogs), we had to add checks within these templates. While this isn’t an\r\nideal solution, it’s temporary, as we expect upcoming generic entity\r\nviews will eventually allow us to remove this logic.\r\n\r\n## Implementation details\r\n\r\nThere's no need to check if EEM is enabled, as the used `dataStreams`\r\ninformation won’t return any results if EEM is disabled. This makes the\r\nextra check unnecessary.\r\n\r\n|Entity|Before|After|\r\n|-|-|-|\r\n\r\n|Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)|\r\n\r\n|Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"586330bd0b557640faa3e019201592f67d180aa4"}},"sourceBranch":"main","suggestedTargetBranches":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196387","number":196387,"mergeCommit":{"message":"[APM/Infra] Display entity detail views for logs-only signals when EEM is enabled (#196387)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/196084.\r\n\r\nWe want to show Service, Host and Container views instead of onboarging\r\nwhen EEM is enabled, entityCentricExperience advanced setting is enabled\r\nand the entity has logs.\r\n\r\n>[!NOTE]\r\nThe visibility of the noDataConfig is evaluated at a generic template\r\nlevel for all 3 entity types.\r\nTo manage visibility based on entity-specific information (checking for\r\nlogs), we had to add checks within these templates. While this isn’t an\r\nideal solution, it’s temporary, as we expect upcoming generic entity\r\nviews will eventually allow us to remove this logic.\r\n\r\n## Implementation details\r\n\r\nThere's no need to check if EEM is enabled, as the used `dataStreams`\r\ninformation won’t return any results if EEM is disabled. This makes the\r\nextra check unnecessary.\r\n\r\n|Entity|Before|After|\r\n|-|-|-|\r\n\r\n|Service|![logs_only_service_before](https://github.com/user-attachments/assets/b92e7801-058d-4dc7-8cc8-eea128f19e4c)|![logs_only_service_after](https://github.com/user-attachments/assets/52eaa3cd-9cb9-427d-b9c2-d87ae6440dac)|\r\n\r\n|Host/Container|![logs_only_host_before](https://github.com/user-attachments/assets/211b2f37-0cba-42e7-bb14-ad3f44fa1a51)|![logs_only_host_after](https://github.com/user-attachments/assets/32cab468-f3d0-49f9-8835-deb016189a14)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Cauê Marcondes <[email protected]>","sha":"586330bd0b557640faa3e019201592f67d180aa4"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Irene Blanco <[email protected]>
Summary
Closes #196084.
We want to show Service, Host and Container views instead of onboarging when EEM is enabled, entityCentricExperience advanced setting is enabled and the entity has logs.
Note
The visibility of the noDataConfig is evaluated at a generic template level for all 3 entity types.
To manage visibility based on entity-specific information (checking for logs), we had to add checks within these templates. While this isn’t an ideal solution, it’s temporary, as we expect upcoming generic entity views will eventually allow us to remove this logic.
Implementation details
There's no need to check if EEM is enabled, as the used
dataStreams
information won’t return any results if EEM is disabled. This makes the extra check unnecessary.