mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
interpolate variables in tags & values during autocomplete
This commit is contained in:
parent
92086bc858
commit
60ba6ee6a2
@ -286,7 +286,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
||||
|
||||
let httpOptions: any = {
|
||||
method: 'GET',
|
||||
url: '/tags/' + tag,
|
||||
url: '/tags/' + templateSrv.replace(tag),
|
||||
// for cancellations
|
||||
requestId: options.requestId,
|
||||
};
|
||||
@ -317,7 +317,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
||||
method: 'GET',
|
||||
url: '/tags/autoComplete/tags',
|
||||
params: {
|
||||
expr: expressions,
|
||||
expr: _.map(expressions, expression => templateSrv.replace(expression)),
|
||||
},
|
||||
// for cancellations
|
||||
requestId: options.requestId,
|
||||
@ -352,8 +352,8 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
||||
method: 'GET',
|
||||
url: '/tags/autoComplete/values',
|
||||
params: {
|
||||
expr: expressions,
|
||||
tag: tag,
|
||||
expr: _.map(expressions, expression => templateSrv.replace(expression)),
|
||||
tag: templateSrv.replace(tag),
|
||||
},
|
||||
// for cancellations
|
||||
requestId: options.requestId,
|
||||
|
Loading…
Reference in New Issue
Block a user