Commit 5221db5a by Torkel Ödegaard

restored influxdb listSeries function

parent 1e6d998a
...@@ -54,6 +54,18 @@ function (angular, _, kbn) { ...@@ -54,6 +54,18 @@ function (angular, _, kbn) {
}; };
InfluxDatasource.prototype.listSeries = function() {
return this.doInfluxRequest('list series').then(function(results) {
if (!results.data) {
return [];
}
return _.map(results.data, function(series) {
return series.name;
});
});
};
InfluxDatasource.prototype.doInfluxRequest = function(query) { InfluxDatasource.prototype.doInfluxRequest = function(query) {
var params = { var params = {
u: this.username, u: this.username,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment