mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
offer template variables for tags
This commit is contained in:
@@ -348,6 +348,10 @@ export class GraphiteQueryCtrl extends QueryCtrl {
|
||||
let tagKey = tag.key;
|
||||
return this.datasource.getTagValuesAutoComplete(tagExpressions, tagKey, valuePrefix).then(values => {
|
||||
let altValues = _.map(values, 'text');
|
||||
// Add template variables as additional values
|
||||
_.eachRight(this.templateSrv.variables, variable => {
|
||||
altValues.push('${' + variable.name + ':regex}');
|
||||
});
|
||||
return mapToDropdownOptions(altValues);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user