Skip to content

Commit

Permalink
Datasource/Loki: Empty metric name no longer replaced by query (#20924)
Browse files Browse the repository at this point in the history
Closes #20762
  • Loading branch information
kaydelaney committed Dec 6, 2019
1 parent 30771f2 commit 6f4f327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/app/plugins/datasource/loki/result_transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function createMetricLabel(labelData: { [key: string]: string }, options?: Trans
? getOriginalMetricName(labelData)
: renderTemplate(templateSrv.replace(options.legendFormat), labelData);

if (!label || label === '{}') {
if (!label) {
label = options.query;
}
return label;
Expand Down

0 comments on commit 6f4f327

Please sign in to comment.