Loki: support template variables when running stream (live) mode (#52973)

This commit is contained in:
Ryan McKinley
2022-07-29 08:41:11 -07:00
committed by GitHub
parent c9d50ddaaa
commit a51d3dad4f

View File

@@ -152,7 +152,15 @@ export class LokiDatasource
...fixedRequest,
targets: streamQueries,
};
return merge(...streamQueries.map((q) => doLokiChannelStream(q, this, streamRequest)));
return merge(
...streamQueries.map((q) =>
doLokiChannelStream(
this.applyTemplateVariables(q, request.scopedVars),
this, // the datasource
streamRequest
)
)
);
}
if (fixedRequest.liveStreaming) {