mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add template variable to drop down list
This commit is contained in:
@@ -312,6 +312,15 @@ function (angular, _, kbn) {
|
||||
return d.promise;
|
||||
};
|
||||
|
||||
CloudWatchDatasource.prototype.getTemplateVariableNames = function() {
|
||||
var variables = [];
|
||||
templateSrv.fillVariableValuesForUrl(variables);
|
||||
|
||||
return _.map(_.keys(variables), function(k) {
|
||||
return k.replace(/var-/, '$');
|
||||
});
|
||||
};
|
||||
|
||||
CloudWatchDatasource.prototype.metricFindQuery = function(query) {
|
||||
var region;
|
||||
var namespace;
|
||||
|
||||
Reference in New Issue
Block a user