-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [APM][Services] New empty states to encourage APM usage in logs…
… only services (#191825) (#192795) # Backport This will backport the following commits from `main` to `8.x`: - [[APM][Services] New empty states to encourage APM usage in logs only services (#191825)](#191825) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Irene Blanco","email":"irene.blanco@elastic.co"},"sourceCommit":{"committedDate":"2024-09-13T02:39:42Z","message":"[APM][Services] New empty states to encourage APM usage in logs only services (#191825)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/190522\r\n\r\nWe want to encourage the use of APM for services that only have logs,\r\nand to achieve this, we plan to add new empty states that prompt users\r\nto add this functionality.\r\n\r\n\r\n\r\n### New panels\r\nThese are the tabs that will be impacted by the change for only logs\r\nservices:\r\n- Overview \r\n- Dependencies\r\n- Infrastructure\r\n- Service Map\r\n- Errors\r\n- Metrics\r\n- Transactions\r\n\r\n|Scenario|Recording|\r\n|-|-|\r\n\r\n|Before|![empty_states_before](https://github.com/user-attachments/assets/b41aec92-4588-4ee5-8e2a-95a215945822)|\r\n|After\r\n(light)|![empty_states_light](https://github.com/user-attachments/assets/3ad790f6-a6d8-4b44-8516-195e6d19bf23)|\r\n|After\r\n(dark)|![empty_states_dark](https://github.com/user-attachments/assets/1cf6d46b-85ca-4dae-8ebc-35dc96edb46c)|\r\n\r\n\r\n### Panel links\r\n![Screen Recording 2024-08-30 at 17 05\r\n04_1](https://github.com/user-attachments/assets/bccc51a2-5a3e-480e-9b72-3b782803ef3f)\r\n\r\n\r\n### Overview panel dismissible\r\n![Screen Recording 2024-08-30 at 17 05\r\n04](https://github.com/user-attachments/assets/0d82a39f-c2b4-448e-b20a-a8c0ea39d32b)\r\n\r\n---------\r\n\r\nCo-authored-by: Katerina <kate@kpatticha.com>\r\nCo-authored-by: Caue Marcondes <caue.marcondes@elastic.co>\r\nCo-authored-by: Kate Patticha <aikaterini.patticha@elastic.co>\r\nCo-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>\r\nCo-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"79e4578c2b47d2bff082e15df142fbb0329cfdd4","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.16.0"],"title":"[APM][Services] New empty states to encourage APM usage in logs only services","number":191825,"url":"https://github.com/elastic/kibana/pull/191825","mergeCommit":{"message":"[APM][Services] New empty states to encourage APM usage in logs only services (#191825)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/190522\r\n\r\nWe want to encourage the use of APM for services that only have logs,\r\nand to achieve this, we plan to add new empty states that prompt users\r\nto add this functionality.\r\n\r\n\r\n\r\n### New panels\r\nThese are the tabs that will be impacted by the change for only logs\r\nservices:\r\n- Overview \r\n- Dependencies\r\n- Infrastructure\r\n- Service Map\r\n- Errors\r\n- Metrics\r\n- Transactions\r\n\r\n|Scenario|Recording|\r\n|-|-|\r\n\r\n|Before|![empty_states_before](https://github.com/user-attachments/assets/b41aec92-4588-4ee5-8e2a-95a215945822)|\r\n|After\r\n(light)|![empty_states_light](https://github.com/user-attachments/assets/3ad790f6-a6d8-4b44-8516-195e6d19bf23)|\r\n|After\r\n(dark)|![empty_states_dark](https://github.com/user-attachments/assets/1cf6d46b-85ca-4dae-8ebc-35dc96edb46c)|\r\n\r\n\r\n### Panel links\r\n![Screen Recording 2024-08-30 at 17 05\r\n04_1](https://github.com/user-attachments/assets/bccc51a2-5a3e-480e-9b72-3b782803ef3f)\r\n\r\n\r\n### Overview panel dismissible\r\n![Screen Recording 2024-08-30 at 17 05\r\n04](https://github.com/user-attachments/assets/0d82a39f-c2b4-448e-b20a-a8c0ea39d32b)\r\n\r\n---------\r\n\r\nCo-authored-by: Katerina <kate@kpatticha.com>\r\nCo-authored-by: Caue Marcondes <caue.marcondes@elastic.co>\r\nCo-authored-by: Kate Patticha <aikaterini.patticha@elastic.co>\r\nCo-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>\r\nCo-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"79e4578c2b47d2bff082e15df142fbb0329cfdd4"}},"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/191825","number":191825,"mergeCommit":{"message":"[APM][Services] New empty states to encourage APM usage in logs only services (#191825)\n\n## Summary\r\n\r\nCloses https://github.com/elastic/kibana/issues/190522\r\n\r\nWe want to encourage the use of APM for services that only have logs,\r\nand to achieve this, we plan to add new empty states that prompt users\r\nto add this functionality.\r\n\r\n\r\n\r\n### New panels\r\nThese are the tabs that will be impacted by the change for only logs\r\nservices:\r\n- Overview \r\n- Dependencies\r\n- Infrastructure\r\n- Service Map\r\n- Errors\r\n- Metrics\r\n- Transactions\r\n\r\n|Scenario|Recording|\r\n|-|-|\r\n\r\n|Before|![empty_states_before](https://github.com/user-attachments/assets/b41aec92-4588-4ee5-8e2a-95a215945822)|\r\n|After\r\n(light)|![empty_states_light](https://github.com/user-attachments/assets/3ad790f6-a6d8-4b44-8516-195e6d19bf23)|\r\n|After\r\n(dark)|![empty_states_dark](https://github.com/user-attachments/assets/1cf6d46b-85ca-4dae-8ebc-35dc96edb46c)|\r\n\r\n\r\n### Panel links\r\n![Screen Recording 2024-08-30 at 17 05\r\n04_1](https://github.com/user-attachments/assets/bccc51a2-5a3e-480e-9b72-3b782803ef3f)\r\n\r\n\r\n### Overview panel dismissible\r\n![Screen Recording 2024-08-30 at 17 05\r\n04](https://github.com/user-attachments/assets/0d82a39f-c2b4-448e-b20a-a8c0ea39d32b)\r\n\r\n---------\r\n\r\nCo-authored-by: Katerina <kate@kpatticha.com>\r\nCo-authored-by: Caue Marcondes <caue.marcondes@elastic.co>\r\nCo-authored-by: Kate Patticha <aikaterini.patticha@elastic.co>\r\nCo-authored-by: Cauê Marcondes <55978943+cauemarcondes@users.noreply.github.com>\r\nCo-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>\r\nCo-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>","sha":"79e4578c2b47d2bff082e15df142fbb0329cfdd4"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Irene Blanco <irene.blanco@elastic.co>
- Loading branch information
1 parent
ef0b115
commit 7c265ec
Showing
32 changed files
with
456 additions
and
64 deletions.
There are no files selected for viewing
Binary file added
BIN
+195 KB
...ic/assets/service_tab_empty_state/dark/service_tab_empty_state_dependencies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+282 KB
...m/public/assets/service_tab_empty_state/dark/service_tab_empty_state_errors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+302 KB
.../assets/service_tab_empty_state/dark/service_tab_empty_state_infrastructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+147 KB
.../public/assets/service_tab_empty_state/dark/service_tab_empty_state_metrics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+246 KB
...public/assets/service_tab_empty_state/dark/service_tab_empty_state_overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.3 KB
...lic/assets/service_tab_empty_state/dark/service_tab_empty_state_service_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+364 KB
...ic/assets/service_tab_empty_state/dark/service_tab_empty_state_transactions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+60.3 KB
...c/assets/service_tab_empty_state/light/service_tab_empty_state_dependencies.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+73.8 KB
.../public/assets/service_tab_empty_state/light/service_tab_empty_state_errors.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64.8 KB
...assets/service_tab_empty_state/light/service_tab_empty_state_infrastructure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31 KB
...public/assets/service_tab_empty_state/light/service_tab_empty_state_metrics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+99.9 KB
...ublic/assets/service_tab_empty_state/light/service_tab_empty_state_overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58 KB
...ic/assets/service_tab_empty_state/light/service_tab_empty_state_service_map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+354 KB
...c/assets/service_tab_empty_state/light/service_tab_empty_state_transactions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
95 changes: 95 additions & 0 deletions
95
...ins/observability_solution/apm/public/components/app/service_tab_empty_state/constants.ts
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,95 @@ | ||
/* | ||
* 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 { i18n } from '@kbn/i18n'; | ||
|
||
export type EmptyStateKey = | ||
| 'serviceOverview' | ||
| 'serviceDependencies' | ||
| 'infraOverview' | ||
| 'serviceMap' | ||
| 'transactionOverview' | ||
| 'metrics' | ||
| 'errorGroupOverview'; | ||
|
||
interface EmptyStateContent { | ||
title: string; | ||
content: string; | ||
imgName?: string; | ||
} | ||
|
||
export const emptyStateDefinitions: Record<EmptyStateKey, EmptyStateContent> = { | ||
serviceOverview: { | ||
title: i18n.translate('xpack.apm.serviceTabEmptyState.overviewTitle', { | ||
defaultMessage: 'Detect and resolve issues faster with deep visibility into your application', | ||
}), | ||
content: i18n.translate('xpack.apm.serviceTabEmptyState.overviewContent', { | ||
defaultMessage: | ||
'Understanding your application performance, relationships and dependencies by instrumenting with APM.', | ||
}), | ||
}, | ||
serviceDependencies: { | ||
title: i18n.translate('xpack.apm.serviceTabEmptyState.dependenciesTitle', { | ||
defaultMessage: 'Understand the dependencies for your service', | ||
}), | ||
content: i18n.translate('xpack.apm.serviceTabEmptyState.dependenciesContent', { | ||
defaultMessage: | ||
'See your services dependencies on both internal and third-party services by instrumenting with APM.', | ||
}), | ||
imgName: 'service_tab_empty_state_dependencies.png', | ||
}, | ||
infraOverview: { | ||
title: i18n.translate('xpack.apm.serviceTabEmptyState.infrastructureTitle', { | ||
defaultMessage: 'Understand what your service is running on', | ||
}), | ||
content: i18n.translate('xpack.apm.serviceTabEmptyState.infrastructureContent', { | ||
defaultMessage: | ||
'Troubleshoot service problems by seeing the infrastructure your service is running on.', | ||
}), | ||
imgName: 'service_tab_empty_state_infrastructure.png', | ||
}, | ||
serviceMap: { | ||
title: i18n.translate('xpack.apm.serviceTabEmptyState.serviceMapTitle', { | ||
defaultMessage: 'Visualise the dependencies between your services', | ||
}), | ||
content: i18n.translate('xpack.apm.serviceTabEmptyState.serviceMapContent', { | ||
defaultMessage: | ||
'See your services dependencies at a glance to help identify dependencies that may be affecting your service.', | ||
}), | ||
imgName: 'service_tab_empty_state_service_map.png', | ||
}, | ||
transactionOverview: { | ||
title: i18n.translate('xpack.apm.serviceTabEmptyState.transactionsTitle', { | ||
defaultMessage: 'Troubleshoot latency, throughput and errors', | ||
}), | ||
content: i18n.translate('xpack.apm.serviceTabEmptyState.transactionsContent', { | ||
defaultMessage: | ||
"Troubleshoot your service's performance by analysing latency, throughput and errors down to the specific transaction.", | ||
}), | ||
imgName: 'service_tab_empty_state_transactions.png', | ||
}, | ||
metrics: { | ||
title: i18n.translate('xpack.apm.serviceTabEmptyState.metricsTitle', { | ||
defaultMessage: 'View core metrics for your application', | ||
}), | ||
content: i18n.translate('xpack.apm.serviceTabEmptyState.metricsContent', { | ||
defaultMessage: | ||
'View metric trends for the instances of your service to identify performance bottlenecks that could be affecting your users.', | ||
}), | ||
imgName: 'service_tab_empty_state_metrics.png', | ||
}, | ||
errorGroupOverview: { | ||
title: i18n.translate('xpack.apm.serviceTabEmptyState.errorGroupOverviewTitle', { | ||
defaultMessage: 'Identify transaction errors with your applications', | ||
}), | ||
content: i18n.translate('xpack.apm.serviceTabEmptyState.errorGroupOverviewContent', { | ||
defaultMessage: | ||
'Analyse errors down to the specific transaction to pin-point specific errors within your service.', | ||
}), | ||
imgName: 'service_tab_empty_state_errors.png', | ||
}, | ||
}; |
Oops, something went wrong.