From 55841f24cd647c8ceedfa36a2d62763fa3ccd57a Mon Sep 17 00:00:00 2001 From: YANGDB Date: Fri, 3 May 2024 14:28:18 -0700 Subject: [PATCH] update OTEL metrics queries with the correct ss40 metrics schema (#1818) Signed-off-by: YANGDB --- server/adaptors/metrics/metrics_analytics_adaptor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/adaptors/metrics/metrics_analytics_adaptor.ts b/server/adaptors/metrics/metrics_analytics_adaptor.ts index 1fde1e3956..a6fa653d05 100644 --- a/server/adaptors/metrics/metrics_analytics_adaptor.ts +++ b/server/adaptors/metrics/metrics_analytics_adaptor.ts @@ -34,7 +34,7 @@ export class MetricsAnalyticsAdaptor { must: [ { term: { - 'name.keyword': { + name: { value: documentName, }, }, @@ -98,7 +98,7 @@ export class MetricsAnalyticsAdaptor { must: [ { term: { - 'name.keyword': { + name: { value: documentName, }, }, @@ -133,7 +133,7 @@ export class MetricsAnalyticsAdaptor { aggs: { distinct_names: { terms: { - field: 'name.keyword', + field: 'name', size: 500, }, },