mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 09:05:45 -06:00
Datasource/Loki: Empty metric name no longer replaced by query (#20924)
Closes #20762
This commit is contained in:
parent
30771f25bf
commit
6f4f327887
@ -284,7 +284,7 @@ function createMetricLabel(labelData: { [key: string]: string }, options?: Trans
|
|||||||
? getOriginalMetricName(labelData)
|
? getOriginalMetricName(labelData)
|
||||||
: renderTemplate(templateSrv.replace(options.legendFormat), labelData);
|
: renderTemplate(templateSrv.replace(options.legendFormat), labelData);
|
||||||
|
|
||||||
if (!label || label === '{}') {
|
if (!label) {
|
||||||
label = options.query;
|
label = options.query;
|
||||||
}
|
}
|
||||||
return label;
|
return label;
|
||||||
|
Loading…
Reference in New Issue
Block a user