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
This commit is contained in:
David 2020-05-06 18:06:35 +02:00 committed by GitHub
parent bfaec17c51
commit 314d442dc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);