diff --git a/x-pack/plugins/observability_solution/inventory/common/entities.ts b/x-pack/plugins/observability_solution/inventory/common/entities.ts index 3ae52ef8ff0c6..8bccea2222000 100644 --- a/x-pack/plugins/observability_solution/inventory/common/entities.ts +++ b/x-pack/plugins/observability_solution/inventory/common/entities.ts @@ -5,7 +5,7 @@ * 2.0. */ import { z } from '@kbn/zod'; -import { entityLatestSchema } from '@kbn/entities-schema'; +import { ENTITY_LATEST, entitiesAliasPattern, entityLatestSchema } from '@kbn/entities-schema'; import { ENTITY_DEFINITION_ID, ENTITY_DISPLAY_NAME, @@ -30,11 +30,10 @@ export const defaultEntitySortField: EntityColumnIds = 'alertsCount'; export const MAX_NUMBER_OF_ENTITIES = 500; -export const ENTITIES_LATEST_ALIAS = '.entities.v1.latest*'; -// entitiesAliasPattern({ -// type: '*', -// dataset: ENTITY_LATEST, -// }); +export const ENTITIES_LATEST_ALIAS = entitiesAliasPattern({ + type: '*', + dataset: ENTITY_LATEST, +}); const entityArrayRt = t.array(t.string); export const entityTypesRt = new t.Type( diff --git a/x-pack/plugins/observability_solution/metrics_data_access/common/constants.ts b/x-pack/plugins/observability_solution/metrics_data_access/common/constants.ts index 227188d359509..d801cc214ecaf 100644 --- a/x-pack/plugins/observability_solution/metrics_data_access/common/constants.ts +++ b/x-pack/plugins/observability_solution/metrics_data_access/common/constants.ts @@ -9,6 +9,5 @@ export const TIMESTAMP_FIELD = '@timestamp'; export const HOST_FIELD = 'host.name'; export const CONTAINER_FIELD = 'container.id'; export const POD_FIELD = 'kubernetes.pod.uid'; -export const KUBENRNETES_CONTAINER_FIELD = 'kubernetes.container.id'; export const METRICS_EXPLORER_API_MAX_METRICS = 20;