forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM][ECO] Logs callout when logs.level is not available (elastic#189644
) closes elastic#189731 - Adding dismiss button to APM section - Adding logs callout https://github.com/user-attachments/assets/902409de-7d9b-47bf-b57d-3cdb199301f0 - N/A popover <img width="1222" alt="Screenshot 2024-07-31 at 15 03 43" src="https://github.com/user-attachments/assets/4a718a04-d649-4992-a1b9-53e31d832449"> <img width="1680" alt="Screenshot 2024-08-06 at 15 01 43" src="https://github.com/user-attachments/assets/f07f1d47-cd70-43ee-a0f8-01577d492406"> <img width="1629" alt="Screenshot 2024-08-06 at 15 01 52" src="https://github.com/user-attachments/assets/4b0d973f-3945-40f5-8a51-97e17242c7a1">
- Loading branch information
1 parent
b265604
commit 0559de6
Showing
16 changed files
with
332 additions
and
55 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
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
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
53 changes: 53 additions & 0 deletions
53
...solution/apm/public/components/shared/not_available_popover/not_available_log_metrics.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,53 @@ | ||
/* | ||
* 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 } from '@elastic/eui'; | ||
import { i18n } from '@kbn/i18n'; | ||
import { FormattedMessage } from '@kbn/i18n-react'; | ||
import React from 'react'; | ||
import { PopoverBadge } from '../popover_badge'; | ||
|
||
export function NotAvailableLogsMetrics() { | ||
return ( | ||
<PopoverBadge | ||
title={i18n.translate('xpack.apm.servicesTable.notAvailableLogsMetrics.title', { | ||
defaultMessage: 'Want to see more?', | ||
})} | ||
content={ | ||
<FormattedMessage | ||
id="xpack.apm.servicesTable.notAvailableLogsMetrics.content" | ||
defaultMessage="In order to see log metrics against this service, please declare {logLevelLink} in your logs." | ||
values={{ | ||
logLevelLink: ( | ||
<EuiLink | ||
data-test-subj="apmNotAvailableLogsMetricsLink" | ||
href="https://www.elastic.co/guide/en/ecs/current/ecs-log.html#field-log-level" | ||
target="_blank" | ||
> | ||
{i18n.translate( | ||
'xpack.apm.servicesTable.notAvailableLogsMetrics.content.logLevelLink', | ||
{ defaultMessage: 'log.level' } | ||
)} | ||
</EuiLink> | ||
), | ||
}} | ||
/> | ||
} | ||
footer={ | ||
<EuiLink | ||
data-test-subj="apmNotAvailableLogsMetricsLink" | ||
href="https://ela.st/service-logs-level" | ||
target="_blank" | ||
> | ||
{i18n.translate('xpack.apm.servicesTable.notAvailableLogsMetrics.footer.learnMore', { | ||
defaultMessage: 'Learn more', | ||
})} | ||
</EuiLink> | ||
} | ||
/> | ||
); | ||
} |
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.