From 314d442dc76fc8f7f57021653f40ed5b5c0208f7 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 6 May 2020 18:06:35 +0200 Subject: [PATCH] Loki: Fix query stats display in Explore (#24348) - the stats label changed in the original PR, so the custom key did no longer work, this change fixes it and the total bytes processed show up in the explore logs meta data --- public/app/plugins/datasource/loki/result_transformer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/loki/result_transformer.ts b/public/app/plugins/datasource/loki/result_transformer.ts index 0720e7b4691..1e441f35917 100644 --- a/public/app/plugins/datasource/loki/result_transformer.ts +++ b/public/app/plugins/datasource/loki/result_transformer.ts @@ -300,7 +300,7 @@ export function lokiStreamsToDataframes( const stats: QueryResultMetaStat[] = lokiStatsToMetaStat(response.data.stats); // Use custom mechanism to identify which stat we want to promote to label const custom = { - lokiQueryStatKey: 'Summary: totalBytesProcessed', + lokiQueryStatKey: 'Summary: total bytes processed', }; const series: DataFrame[] = data.map(stream => { const dataFrame = lokiStreamResultToDataFrame(stream, reverse);