-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Infra] Provide troubleshooting information on the host details page (#…
…191104) Closes #190523 ## Summary This PR provides troubleshooting information in the services section on the host details page. ## Testing Go to the hosts details page / host flyout - using a host without services monitored with system integration ![image](https://github.com/user-attachments/assets/5226e4a1-7b19-4a22-b11d-2aae55f543e3) - using a host without services not monitored with system integration ( only detected by APM ) ![image](https://github.com/user-attachments/assets/f63513bd-d3f9-41eb-97a6-0011b2d11673) - icon next to the title (same as the table) <img width="1690" alt="image" src="https://github.com/user-attachments/assets/b722b61d-29d0-46dd-a3d8-e9f594236bf1"> For hosts with services, nothing changes (the service is shown): <img width="474" alt="image" src="https://github.com/user-attachments/assets/81f54a1a-485d-4e0b-a746-618fca5a864c">
- Loading branch information
1 parent
eca2cdc
commit 3628fda
Showing
13 changed files
with
236 additions
and
47 deletions.
There are no files selected for viewing
This file contains 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 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 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
66 changes: 66 additions & 0 deletions
66
...ability_solution/infra/public/components/asset_details/header/page_title_with_popover.tsx
This file contains 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,66 @@ | ||
/* | ||
* 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 React from 'react'; | ||
|
||
import { EuiText, EuiLink, EuiFlexGroup, EuiFlexItem } from '@elastic/eui'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import { APM_HOST_TROUBLESHOOTING_LINK } from '../constants'; | ||
import { Popover } from '../tabs/common/popover'; | ||
|
||
export const PageTitleWithPopover = ({ | ||
hasSystemMetrics, | ||
name, | ||
}: { | ||
hasSystemMetrics: boolean; | ||
name: string; | ||
}) => { | ||
return !hasSystemMetrics ? ( | ||
<EuiFlexGroup gutterSize="xs" alignItems="center" responsive={false}> | ||
<EuiFlexItem grow={false}>{name}</EuiFlexItem> | ||
<EuiFlexItem grow={false}> | ||
<Popover icon="questionInCircle" data-test-subj="assetDetailsTitleHasSystemMetricsPopover"> | ||
<EuiText size="xs"> | ||
<p> | ||
<FormattedMessage | ||
id="xpack.infra.assetDetails.title.tooltip.apmHostMessage" | ||
defaultMessage="This host has been detected by {apm}" | ||
values={{ | ||
apm: ( | ||
<EuiLink | ||
data-test-subj="assetDetailsTitleTooltipApmDocumentationLink" | ||
href=" https://www.elastic.co/guide/en/observability/current/apm.html" | ||
target="_blank" | ||
> | ||
<FormattedMessage | ||
id="xpack.infra.assetDetails.title.tooltip.apmHostMessage.apmDocumentationLink" | ||
defaultMessage="APM" | ||
/> | ||
</EuiLink> | ||
), | ||
}} | ||
/> | ||
</p> | ||
<p> | ||
<EuiLink | ||
data-test-subj="assetDetailsTitleHasSystemMetricsLearnMoreLink" | ||
href={APM_HOST_TROUBLESHOOTING_LINK} | ||
target="_blank" | ||
> | ||
<FormattedMessage | ||
id="xpack.infra.assetDetails.title.tooltip.learnMoreLink" | ||
defaultMessage="Learn more" | ||
/> | ||
</EuiLink> | ||
</p> | ||
</EuiText> | ||
</Popover> | ||
</EuiFlexItem> | ||
</EuiFlexGroup> | ||
) : ( | ||
<>{name}</> | ||
); | ||
}; |
This file contains 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 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 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.