diff --git a/x-pack/legacy/plugins/apm/common/__snapshots__/elasticsearch_fieldnames.test.ts.snap b/x-pack/legacy/plugins/apm/common/__snapshots__/elasticsearch_fieldnames.test.ts.snap index 4a72b12355ce67..3ba2bd27677730 100644 --- a/x-pack/legacy/plugins/apm/common/__snapshots__/elasticsearch_fieldnames.test.ts.snap +++ b/x-pack/legacy/plugins/apm/common/__snapshots__/elasticsearch_fieldnames.test.ts.snap @@ -46,7 +46,7 @@ exports[`Error OBSERVER_VERSION_MAJOR 1`] = `undefined`; exports[`Error PARENT_ID 1`] = `"parentId"`; -exports[`Error POD_ID 1`] = `undefined`; +exports[`Error POD_NAME 1`] = `undefined`; exports[`Error PROCESSOR_EVENT 1`] = `"error"`; @@ -138,7 +138,7 @@ exports[`Span OBSERVER_VERSION_MAJOR 1`] = `undefined`; exports[`Span PARENT_ID 1`] = `"parentId"`; -exports[`Span POD_ID 1`] = `undefined`; +exports[`Span POD_NAME 1`] = `undefined`; exports[`Span PROCESSOR_EVENT 1`] = `"span"`; @@ -230,7 +230,7 @@ exports[`Transaction OBSERVER_VERSION_MAJOR 1`] = `undefined`; exports[`Transaction PARENT_ID 1`] = `"parentId"`; -exports[`Transaction POD_ID 1`] = `"pod1234567890abcdef"`; +exports[`Transaction POD_NAME 1`] = `undefined`; exports[`Transaction PROCESSOR_EVENT 1`] = `"transaction"`; diff --git a/x-pack/legacy/plugins/apm/common/elasticsearch_fieldnames.ts b/x-pack/legacy/plugins/apm/common/elasticsearch_fieldnames.ts index 32c73458a295a9..365a9865b6e47e 100644 --- a/x-pack/legacy/plugins/apm/common/elasticsearch_fieldnames.ts +++ b/x-pack/legacy/plugins/apm/common/elasticsearch_fieldnames.ts @@ -60,4 +60,4 @@ export const METRIC_JAVA_THREAD_COUNT = 'jvm.thread.count'; export const HOST_NAME = 'host.hostname'; export const CONTAINER_ID = 'container.id'; -export const POD_ID = 'kubernetes.pod.uid'; +export const POD_NAME = 'kubernetes.pod.name'; diff --git a/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupOverview/index.tsx b/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupOverview/index.tsx index e53e3593e22d55..57b7ea200ece70 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupOverview/index.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/ErrorGroupOverview/index.tsx @@ -62,7 +62,7 @@ const ErrorGroupOverview: React.SFC = () => { const localUIFiltersConfig = useMemo(() => { const config: React.ComponentProps = { - filterNames: ['transactionResult', 'host', 'containerId', 'podId'], + filterNames: ['transactionResult', 'host', 'containerId', 'podName'], params: { serviceName }, diff --git a/x-pack/legacy/plugins/apm/public/components/app/ServiceMetrics/index.tsx b/x-pack/legacy/plugins/apm/public/components/app/ServiceMetrics/index.tsx index 44a881472566e7..871e48c290503a 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/ServiceMetrics/index.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/ServiceMetrics/index.tsx @@ -33,7 +33,7 @@ export function ServiceMetrics({ agentName }: ServiceMetricsProps) { typeof LocalUIFilters > = useMemo( () => ({ - filterNames: ['host', 'containerId', 'podId'], + filterNames: ['host', 'containerId', 'podName'], params: { serviceName }, diff --git a/x-pack/legacy/plugins/apm/public/components/app/TraceOverview/index.tsx b/x-pack/legacy/plugins/apm/public/components/app/TraceOverview/index.tsx index a5a7a8d45a7dcd..74819600d44a9a 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/TraceOverview/index.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/TraceOverview/index.tsx @@ -28,7 +28,7 @@ export function TraceOverview() { const localUIFiltersConfig = useMemo(() => { const config: React.ComponentProps = { - filterNames: ['transactionResult', 'host', 'containerId', 'podId'], + filterNames: ['transactionResult', 'host', 'containerId', 'podName'], projection: PROJECTION.TRACES }; diff --git a/x-pack/legacy/plugins/apm/public/components/app/TransactionOverview/index.tsx b/x-pack/legacy/plugins/apm/public/components/app/TransactionOverview/index.tsx index 5bcf7177157d91..52450bc3876f32 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/TransactionOverview/index.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/TransactionOverview/index.tsx @@ -95,7 +95,7 @@ export function TransactionOverview() { typeof LocalUIFilters > = useMemo( () => ({ - filterNames: ['transactionResult', 'host', 'containerId', 'podId'], + filterNames: ['transactionResult', 'host', 'containerId', 'podName'], params: { serviceName, transactionType diff --git a/x-pack/legacy/plugins/apm/server/lib/ui_filters/local_ui_filters/config.ts b/x-pack/legacy/plugins/apm/server/lib/ui_filters/local_ui_filters/config.ts index edb5f01b364e01..5d10a4ae27060a 100644 --- a/x-pack/legacy/plugins/apm/server/lib/ui_filters/local_ui_filters/config.ts +++ b/x-pack/legacy/plugins/apm/server/lib/ui_filters/local_ui_filters/config.ts @@ -6,7 +6,7 @@ import { i18n } from '@kbn/i18n'; import { CONTAINER_ID, - POD_ID, + POD_NAME, SERVICE_AGENT_NAME, HOST_NAME, TRANSACTION_RESULT @@ -31,11 +31,11 @@ const filtersByName = { }), fieldName: CONTAINER_ID }, - podId: { - title: i18n.translate('xpack.apm.localFilters.titles.podId', { + podName: { + title: i18n.translate('xpack.apm.localFilters.titles.podName', { defaultMessage: 'Pod' }), - fieldName: POD_ID + fieldName: POD_NAME }, transactionResult: { title: i18n.translate('xpack.apm.localFilters.titles.transactionResult', {