+ {i18n.translate('xpack.infra.profiling.emptyDataPromptBody', { + defaultMessage: + 'Make sure this host is sending profiling data or try selecting a different date range.', + })} +
+ } + /> + > + ); +} diff --git a/x-pack/plugins/infra/public/components/asset_details/tabs/profiling/flamegraph.tsx b/x-pack/plugins/infra/public/components/asset_details/tabs/profiling/flamegraph.tsx index a00b9373c2f02..80a7f0ad8539c 100644 --- a/x-pack/plugins/infra/public/components/asset_details/tabs/profiling/flamegraph.tsx +++ b/x-pack/plugins/infra/public/components/asset_details/tabs/profiling/flamegraph.tsx @@ -17,6 +17,7 @@ import { useTabSwitcherContext } from '../../hooks/use_tab_switcher'; import { ContentTabIds } from '../../types'; import { ErrorPrompt } from './error_prompt'; import { ProfilingLinks } from './profiling_links'; +import { EmptyDataPrompt } from './empty_data_prompt'; export function Flamegraph() { const { services } = useKibanaContextForPlugin(); @@ -47,6 +48,10 @@ export function Flamegraph() { return