Skip to content

Commit

Permalink
Use pod name instead of pod uid
Browse files Browse the repository at this point in the history
  • Loading branch information
dgieselaar committed Aug 14, 2019
1 parent a00e037 commit 3653d59
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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';
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const ErrorGroupOverview: React.SFC = () => {

const localUIFiltersConfig = useMemo(() => {
const config: React.ComponentProps<typeof LocalUIFilters> = {
filterNames: ['transactionResult', 'host', 'containerId', 'podId'],
filterNames: ['transactionResult', 'host', 'containerId', 'podName'],
params: {
serviceName
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function ServiceMetrics({ agentName }: ServiceMetricsProps) {
typeof LocalUIFilters
> = useMemo(
() => ({
filterNames: ['host', 'containerId', 'podId'],
filterNames: ['host', 'containerId', 'podName'],
params: {
serviceName
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function TraceOverview() {

const localUIFiltersConfig = useMemo(() => {
const config: React.ComponentProps<typeof LocalUIFilters> = {
filterNames: ['transactionResult', 'host', 'containerId', 'podId'],
filterNames: ['transactionResult', 'host', 'containerId', 'podName'],
projection: PROJECTION.TRACES
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function TransactionOverview() {
typeof LocalUIFilters
> = useMemo(
() => ({
filterNames: ['transactionResult', 'host', 'containerId', 'podId'],
filterNames: ['transactionResult', 'host', 'containerId', 'podName'],
params: {
serviceName,
transactionType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import { i18n } from '@kbn/i18n';
import {
CONTAINER_ID,
POD_ID,
POD_NAME,
SERVICE_AGENT_NAME,
HOST_NAME,
TRANSACTION_RESULT
Expand All @@ -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', {
Expand Down

0 comments on commit 3653d59

Please sign in to comment.