|
@@ -12,7 +12,7 @@ function (angular, _, kbn) {
|
|
|
|
|
|
|
|
function InfluxDatasource(datasource) {
|
|
function InfluxDatasource(datasource) {
|
|
|
this.type = 'influxDB';
|
|
this.type = 'influxDB';
|
|
|
- this.editorSrc = 'app/partials/influxDB/editor.html';
|
|
|
|
|
|
|
+ this.editorSrc = 'app/partials/influxdb/editor.html';
|
|
|
this.url = datasource.url;
|
|
this.url = datasource.url;
|
|
|
this.username = datasource.username;
|
|
this.username = datasource.username;
|
|
|
this.password = datasource.password;
|
|
this.password = datasource.password;
|
|
@@ -54,18 +54,6 @@ 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,
|