-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[ObsUX][Infra] Ensure Infra Inventory UIs reflect supported schemas #244481
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
Merged
rmyz
merged 14 commits into
elastic:main
from
rmyz:237319-infra-inventory_ui-show-supported-data-popover
Dec 1, 2025
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c1b3ae7
feat: show supported data popover
rmyz 4a8df50
refactor: filter in data using nodeFilter
rmyz 695e1b8
refactor: remove SupportedDataPopover component and replace with Supp…
rmyz 3ec43c8
feat: integrate SupportedDataTooltipLink into Expressions component a…
rmyz 374728b
fix i18n
rmyz f124a48
fix test
rmyz 72b260e
add tests for filters
rmyz 2694b1d
change copy based on alert ui
rmyz 1a9bf49
Merge branch 'main' into 237319-infra-inventory_ui-show-supported-dat…
rmyz 4d2abc3
fix tests
rmyz 9a2db1e
Merge branch 'main' into 237319-infra-inventory_ui-show-supported-dat…
rmyz 90f886a
Merge branch 'main' into 237319-infra-inventory_ui-show-supported-dat…
rmyz 120373c
remove fallback value
rmyz 026a846
add fallback
rmyz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 145 additions & 0 deletions
145
...k/solutions/observability/plugins/infra/public/components/supported_data_tooltip_link.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import { EuiLink, EuiToolTip, useEuiTheme } from '@elastic/eui'; | ||
| import { i18n } from '@kbn/i18n'; | ||
| import React from 'react'; | ||
| import type { InventoryItemType } from '@kbn/metrics-data-access-plugin/common'; | ||
|
|
||
| export const INTEGRATIONS: Record< | ||
| InventoryItemType, | ||
| { inventoryLabel: string; documentation: string; alertingLabel?: string } | ||
| > = { | ||
| host: { | ||
| inventoryLabel: i18n.translate('xpack.infra.supportedDataTooltipLink.hostIntegrationInfo', { | ||
| defaultMessage: | ||
| 'This view supports data from the OpenTelemetry and Elastic System Integration.', | ||
| }), | ||
| alertingLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.hostIntegrationInfoAlerting', | ||
| { | ||
| defaultMessage: | ||
| 'This alert rule supports data from the OpenTelemetry and Elastic System Integration.', | ||
| } | ||
| ), | ||
| documentation: 'https://ela.st/infra-inventory-supported-data-hosts', | ||
| }, | ||
| pod: { | ||
| inventoryLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.kubernetesIntegrationInfo', | ||
| { | ||
| defaultMessage: 'This view supports data from the Kubernetes Integration.', | ||
| } | ||
| ), | ||
| alertingLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.kubernetesIntegrationInfoAlerting', | ||
| { | ||
| defaultMessage: 'This alert rule supports data from the Kubernetes Integration.', | ||
| } | ||
| ), | ||
| documentation: 'https://ela.st/infra-inventory-supported-data-k8s-pods', | ||
| }, | ||
| container: { | ||
| inventoryLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.dockerContainerIntegrationInfo', | ||
| { | ||
| defaultMessage: | ||
| 'This view supports data from the Kubernetes, System and Docker Integrations.', | ||
| } | ||
| ), | ||
| alertingLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.dockerContainerIntegrationInfoAlerting', | ||
| { | ||
| defaultMessage: | ||
| 'This alert rule supports data from the Kubernetes, System and Docker Integrations.', | ||
| } | ||
| ), | ||
| documentation: 'https://ela.st/infra-inventory-supported-data-containers', | ||
| }, | ||
| awsEC2: { | ||
| inventoryLabel: i18n.translate('xpack.infra.supportedDataTooltipLink.awsEC2IntegrationInfo', { | ||
| defaultMessage: 'This view supports data from the AWS EC2 Integration.', | ||
| }), | ||
| alertingLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.awsEC2IntegrationInfoAlerting', | ||
| { | ||
| defaultMessage: 'This alert rule supports data from the AWS EC2 Integration.', | ||
| } | ||
| ), | ||
| documentation: 'https://ela.st/infra-inventory-supported-data-aws-ec2', | ||
| }, | ||
| awsRDS: { | ||
| inventoryLabel: i18n.translate('xpack.infra.supportedDataTooltipLink.awsRDSIntegrationInfo', { | ||
| defaultMessage: 'This view supports data from the AWS RDS Integration.', | ||
| }), | ||
| alertingLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.awsRDSIntegrationInfoAlerting', | ||
| { | ||
| defaultMessage: 'This alert rule supports data from the AWS RDS Integration.', | ||
| } | ||
| ), | ||
| documentation: 'https://ela.st/infra-inventory-supported-data-aws-rds', | ||
| }, | ||
| awsS3: { | ||
| inventoryLabel: i18n.translate('xpack.infra.supportedDataTooltipLink.awsS3IntegrationInfo', { | ||
| defaultMessage: 'This view supports data from the AWS S3 Integration.', | ||
| }), | ||
| alertingLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.awsS3IntegrationInfoAlerting', | ||
| { | ||
| defaultMessage: 'This alert rule supports data from the AWS S3 Integration.', | ||
| } | ||
| ), | ||
| documentation: 'https://ela.st/infra-inventory-supported-data-aws-s3', | ||
| }, | ||
| awsSQS: { | ||
| inventoryLabel: i18n.translate('xpack.infra.supportedDataTooltipLink.awsSQSIntegrationInfo', { | ||
| defaultMessage: 'This view supports data from the AWS SQS Integration.', | ||
| }), | ||
| alertingLabel: i18n.translate( | ||
| 'xpack.infra.supportedDataTooltipLink.awsSQSIntegrationInfoAlerting', | ||
| { | ||
| defaultMessage: 'This alert rule supports data from the AWS SQS Integration.', | ||
| } | ||
| ), | ||
| documentation: 'https://ela.st/infra-inventory-supported-data-aws-sqs', | ||
| }, | ||
| } as const; | ||
|
|
||
| export function SupportedDataTooltipLink({ | ||
| nodeType, | ||
| isAlertUI = false, | ||
| }: { | ||
| nodeType: InventoryItemType; | ||
| isAlertUI?: boolean; | ||
| }) { | ||
| const { euiTheme } = useEuiTheme(); | ||
|
|
||
| return ( | ||
| <EuiToolTip | ||
| content={ | ||
| isAlertUI ? INTEGRATIONS[nodeType].alertingLabel : INTEGRATIONS[nodeType].inventoryLabel | ||
| } | ||
| > | ||
| <EuiLink | ||
| data-test-subj="infraSupportedDataTooltipLink" | ||
| href={INTEGRATIONS[nodeType].documentation} | ||
| target="_blank" | ||
| external | ||
| css={{ | ||
| height: !isAlertUI ? euiTheme.size.xl : '30px', | ||
| display: 'inline-flex', | ||
| alignItems: 'center', | ||
| }} | ||
| > | ||
| {i18n.translate('xpack.infra.supportedDataTooltipLink.label', { | ||
| defaultMessage: 'What data is supported?', | ||
| })} | ||
| </EuiLink> | ||
| </EuiToolTip> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.