From c27bee567f832921a94e415e8ab40b5b61d87325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 17 Jan 2024 17:05:24 +0100 Subject: [PATCH] DataTrails: Fixes heatmap (#80706) * DataTrails: Heatmap y axis fix * Fix format --- .../AutomaticMetricQueries/query-generators/bucket/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/trails/AutomaticMetricQueries/query-generators/bucket/index.ts b/public/app/features/trails/AutomaticMetricQueries/query-generators/bucket/index.ts index 55d5635b23a..66dd0b6ba92 100644 --- a/public/app/features/trails/AutomaticMetricQueries/query-generators/bucket/index.ts +++ b/public/app/features/trails/AutomaticMetricQueries/query-generators/bucket/index.ts @@ -68,10 +68,11 @@ function baseQuery(groupings: string[] = []) { return `sum by(${sumByList.join(', ')}) (${BASE_QUERY})`; } -function heatMapQuery(groupings: string[] = []) { +function heatMapQuery(groupings: string[] = []): PromQuery { return { refId: 'A', expr: baseQuery(groupings), + format: 'heatmap', }; }