mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
(prometheus) fix template variable expansion in legend
This commit is contained in:
parent
d11bc57c37
commit
9d09e5bbd0
@ -257,7 +257,7 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
|
||||
return this.getOriginalMetricName(labelData);
|
||||
}
|
||||
|
||||
return this.renderTemplate(options.legendFormat, labelData) || '{}';
|
||||
return this.renderTemplate(templateSrv.replace(options.legendFormat), labelData) || '{}';
|
||||
};
|
||||
|
||||
this.renderTemplate = function(aliasPattern, aliasData) {
|
||||
|
Loading…
Reference in New Issue
Block a user