-
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
[ECO][Infra] Add callout for ingesting metrics data in Host and Container views #195378
[ECO][Infra] Add callout for ingesting metrics data in Host and Container views #195378
Conversation
…ers-to-ingest-metrics-data
…ers-to-ingest-metrics-data
Good point. It's better to hide if the array doesn't contain |
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.
Changes to infra tsconfig.ts
LGTM, code review only.
...gins/observability_solution/infra/public/components/asset_details/tabs/overview/overview.tsx
Outdated
Show resolved
Hide resolved
...gins/observability_solution/infra/public/components/asset_details/tabs/overview/overview.tsx
Show resolved
Hide resolved
x-pack/plugins/observability_solution/infra/public/components/asset_details/template/page.tsx
Outdated
Show resolved
Hide resolved
|
||
import { EntityDataStreamType } from '@kbn/observability-shared-plugin/common'; | ||
|
||
export function isMetricsSignal(dataStreamTypes: EntityDataStreamType[] = []) { |
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.
Do you think naming it hasMetricsSignal
would make more sense?
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.
I updated it from hasMetrics
to isMetricsSignal
based on this comment in the PR.
...gins/observability_solution/infra/public/components/asset_details/tabs/overview/overview.tsx
Show resolved
Hide resolved
…st-metrics-data' of https://github.com/iblancof/kibana into 193703-infra-eco-show-a-callout-to-prompt-users-to-ingest-metrics-data
…ers-to-ingest-metrics-data
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
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.
...bservability_solution/infra/public/components/asset_details/add_metrics_callout/constants.ts
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled in files
Total ESLint disabled count
History
cc @iblancof |
Starting backport for target branches: 8.x https://github.com/elastic/kibana/actions/runs/11329854789 |
…iner views (elastic#195378) ## Summary Closes elastic#193703 This PR introduces a callout designed to prompt users to ingest metrics data in the Host and Container views. The callout will be displayed on the following tabs: - **Hosts**: Overview, Metrics, Processes - **Containers**: Overview, Metrics The primary condition for showing the callout is that the asset does not currently have any metrics data available. This enhancement aims to encourage users to take action and improve their monitoring experience. Additional details include: - The callout will be positioned below the date picker for better visibility. - Links for "Add Metrics" will guide users to the appropriate onboarding pages based on their asset type. - The callout will be dismissible on the Overview tab, and the KPI section will be hidden in favor of the callout for a cleaner interface. - Custom telemetry events will be tracked to measure user interactions with the callout. - Only Docker and K8 containers will show the callout. **Host** |Tab|| |-|-| |Overview|![Screenshot 2024-10-08 at 12 19 22](https://github.com/user-attachments/assets/e357d6c6-2423-40f9-a513-361c642dc07c)| |Metrics|![Screenshot 2024-10-08 at 12 19 31](https://github.com/user-attachments/assets/559a6e71-344a-4b4a-9ad6-8d229a1d9bcb)| |Processes|![Screenshot 2024-10-08 at 12 19 39](https://github.com/user-attachments/assets/070f6fb1-0756-4b21-abce-4b395be943df)| **Container** |Tab|| |-|-| |Overview|![Screenshot 2024-10-08 at 12 24 10](https://github.com/user-attachments/assets/101cfc7b-f445-44e7-9aa3-bec8928c3ed5)| |Metrics|![Screenshot 2024-10-08 at 12 21 22](https://github.com/user-attachments/assets/d516d449-2af4-441f-9047-39c9362c5a86)| --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Caue Marcondes <[email protected]> (cherry picked from commit 96966c5)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
… Container views (#195378) (#196158) # Backport This will backport the following commits from `main` to `8.x`: - [[ECO][Infra] Add callout for ingesting metrics data in Host and Container views (#195378)](#195378) <!--- 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-14T14:42:44Z","message":"[ECO][Infra] Add callout for ingesting metrics data in Host and Container views (#195378)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/193703\r\n\r\nThis PR introduces a callout designed to prompt users to ingest metrics\r\ndata in the Host and Container views.\r\nThe callout will be displayed on the following tabs:\r\n\r\n- **Hosts**: Overview, Metrics, Processes\r\n- **Containers**: Overview, Metrics\r\n\r\nThe primary condition for showing the callout is that the asset does not\r\ncurrently have any metrics data available. This enhancement aims to\r\nencourage users to take action and improve their monitoring experience.\r\n\r\nAdditional details include:\r\n\r\n- The callout will be positioned below the date picker for better\r\nvisibility.\r\n- Links for \"Add Metrics\" will guide users to the appropriate onboarding\r\npages based on their asset type.\r\n- The callout will be dismissible on the Overview tab, and the KPI\r\nsection will be hidden in favor of the callout for a cleaner interface.\r\n- Custom telemetry events will be tracked to measure user interactions\r\nwith the callout.\r\n- Only Docker and K8 containers will show the callout.\r\n\r\n**Host**\r\n|Tab||\r\n|-|-|\r\n|Overview|![Screenshot 2024-10-08 at 12 19\r\n22](https://github.com/user-attachments/assets/e357d6c6-2423-40f9-a513-361c642dc07c)|\r\n|Metrics|![Screenshot 2024-10-08 at 12 19\r\n31](https://github.com/user-attachments/assets/559a6e71-344a-4b4a-9ad6-8d229a1d9bcb)|\r\n|Processes|![Screenshot 2024-10-08 at 12 19\r\n39](https://github.com/user-attachments/assets/070f6fb1-0756-4b21-abce-4b395be943df)|\r\n\r\n**Container**\r\n|Tab||\r\n|-|-|\r\n|Overview|![Screenshot 2024-10-08 at 12 24\r\n10](https://github.com/user-attachments/assets/101cfc7b-f445-44e7-9aa3-bec8928c3ed5)|\r\n|Metrics|![Screenshot 2024-10-08 at 12 21\r\n22](https://github.com/user-attachments/assets/d516d449-2af4-441f-9047-39c9362c5a86)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Caue Marcondes <[email protected]>","sha":"96966c5113678b8840c7a311e7e4ed1e977b4dac","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.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-logs","Team:obs-ux-infra_services","v8.16.0"],"title":"[ECO][Infra] Add callout for ingesting metrics data in Host and Container views","number":195378,"url":"https://github.com/elastic/kibana/pull/195378","mergeCommit":{"message":"[ECO][Infra] Add callout for ingesting metrics data in Host and Container views (#195378)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/193703\r\n\r\nThis PR introduces a callout designed to prompt users to ingest metrics\r\ndata in the Host and Container views.\r\nThe callout will be displayed on the following tabs:\r\n\r\n- **Hosts**: Overview, Metrics, Processes\r\n- **Containers**: Overview, Metrics\r\n\r\nThe primary condition for showing the callout is that the asset does not\r\ncurrently have any metrics data available. This enhancement aims to\r\nencourage users to take action and improve their monitoring experience.\r\n\r\nAdditional details include:\r\n\r\n- The callout will be positioned below the date picker for better\r\nvisibility.\r\n- Links for \"Add Metrics\" will guide users to the appropriate onboarding\r\npages based on their asset type.\r\n- The callout will be dismissible on the Overview tab, and the KPI\r\nsection will be hidden in favor of the callout for a cleaner interface.\r\n- Custom telemetry events will be tracked to measure user interactions\r\nwith the callout.\r\n- Only Docker and K8 containers will show the callout.\r\n\r\n**Host**\r\n|Tab||\r\n|-|-|\r\n|Overview|![Screenshot 2024-10-08 at 12 19\r\n22](https://github.com/user-attachments/assets/e357d6c6-2423-40f9-a513-361c642dc07c)|\r\n|Metrics|![Screenshot 2024-10-08 at 12 19\r\n31](https://github.com/user-attachments/assets/559a6e71-344a-4b4a-9ad6-8d229a1d9bcb)|\r\n|Processes|![Screenshot 2024-10-08 at 12 19\r\n39](https://github.com/user-attachments/assets/070f6fb1-0756-4b21-abce-4b395be943df)|\r\n\r\n**Container**\r\n|Tab||\r\n|-|-|\r\n|Overview|![Screenshot 2024-10-08 at 12 24\r\n10](https://github.com/user-attachments/assets/101cfc7b-f445-44e7-9aa3-bec8928c3ed5)|\r\n|Metrics|![Screenshot 2024-10-08 at 12 21\r\n22](https://github.com/user-attachments/assets/d516d449-2af4-441f-9047-39c9362c5a86)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Caue Marcondes <[email protected]>","sha":"96966c5113678b8840c7a311e7e4ed1e977b4dac"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195378","number":195378,"mergeCommit":{"message":"[ECO][Infra] Add callout for ingesting metrics data in Host and Container views (#195378)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/193703\r\n\r\nThis PR introduces a callout designed to prompt users to ingest metrics\r\ndata in the Host and Container views.\r\nThe callout will be displayed on the following tabs:\r\n\r\n- **Hosts**: Overview, Metrics, Processes\r\n- **Containers**: Overview, Metrics\r\n\r\nThe primary condition for showing the callout is that the asset does not\r\ncurrently have any metrics data available. This enhancement aims to\r\nencourage users to take action and improve their monitoring experience.\r\n\r\nAdditional details include:\r\n\r\n- The callout will be positioned below the date picker for better\r\nvisibility.\r\n- Links for \"Add Metrics\" will guide users to the appropriate onboarding\r\npages based on their asset type.\r\n- The callout will be dismissible on the Overview tab, and the KPI\r\nsection will be hidden in favor of the callout for a cleaner interface.\r\n- Custom telemetry events will be tracked to measure user interactions\r\nwith the callout.\r\n- Only Docker and K8 containers will show the callout.\r\n\r\n**Host**\r\n|Tab||\r\n|-|-|\r\n|Overview|![Screenshot 2024-10-08 at 12 19\r\n22](https://github.com/user-attachments/assets/e357d6c6-2423-40f9-a513-361c642dc07c)|\r\n|Metrics|![Screenshot 2024-10-08 at 12 19\r\n31](https://github.com/user-attachments/assets/559a6e71-344a-4b4a-9ad6-8d229a1d9bcb)|\r\n|Processes|![Screenshot 2024-10-08 at 12 19\r\n39](https://github.com/user-attachments/assets/070f6fb1-0756-4b21-abce-4b395be943df)|\r\n\r\n**Container**\r\n|Tab||\r\n|-|-|\r\n|Overview|![Screenshot 2024-10-08 at 12 24\r\n10](https://github.com/user-attachments/assets/101cfc7b-f445-44e7-9aa3-bec8928c3ed5)|\r\n|Metrics|![Screenshot 2024-10-08 at 12 21\r\n22](https://github.com/user-attachments/assets/d516d449-2af4-441f-9047-39c9362c5a86)|\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Caue Marcondes <[email protected]>","sha":"96966c5113678b8840c7a311e7e4ed1e977b4dac"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Irene Blanco <[email protected]>
Summary
Closes #193703
This PR introduces a callout designed to prompt users to ingest metrics data in the Host and Container views.
The callout will be displayed on the following tabs:
The primary condition for showing the callout is that the asset does not currently have any metrics data available. This enhancement aims to encourage users to take action and improve their monitoring experience.
Additional details include:
Host
Container