mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ObsUX] Change link from instances table of java agent to open new Metrics pa… (#169672)
Closes https://github.com/elastic/kibana/issues/169085 BEFOREda089db4
-9164-4eb6-8542-03ec8233cea6 AFTER544ed491
-1b69-4fa7-8053-0f711d9ecdb2
This commit is contained in:
parent
bccfaafa7c
commit
6f334cd510
1 changed files with 1 additions and 10 deletions
|
@ -14,7 +14,6 @@ import { i18n } from '@kbn/i18n';
|
|||
import React, { ReactNode } from 'react';
|
||||
import { ActionMenu } from '@kbn/observability-shared-plugin/public';
|
||||
import { isTimeComparison } from '../../../shared/time_comparison/get_comparison_options';
|
||||
import { isJavaAgentName } from '../../../../../common/agent_name';
|
||||
import { LatencyAggregationType } from '../../../../../common/latency_aggregation_types';
|
||||
import {
|
||||
getServiceNodeName,
|
||||
|
@ -27,7 +26,6 @@ import {
|
|||
} from '../../../../../common/utils/formatters';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { MetricOverviewLink } from '../../../shared/links/apm/metric_overview_link';
|
||||
import { ServiceNodeMetricOverviewLink } from '../../../shared/links/apm/service_node_metric_overview_link';
|
||||
import { ListMetric } from '../../../shared/list_metric';
|
||||
import { getLatencyColumnLabel } from '../../../shared/transactions_table/get_latency_column_label';
|
||||
import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip';
|
||||
|
@ -87,14 +85,7 @@ export function getColumns({
|
|||
serviceNodeName === SERVICE_NODE_NAME_MISSING;
|
||||
const text = getServiceNodeName(serviceNodeName);
|
||||
|
||||
const link = isJavaAgentName(agentName) ? (
|
||||
<ServiceNodeMetricOverviewLink
|
||||
serviceName={serviceName}
|
||||
serviceNodeName={item.serviceNodeName}
|
||||
>
|
||||
{text}
|
||||
</ServiceNodeMetricOverviewLink>
|
||||
) : (
|
||||
const link = (
|
||||
<MetricOverviewLink
|
||||
serviceName={serviceName}
|
||||
mergeQuery={(query) => ({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue