Added test connection action to all data sources, Closes #1997

This commit is contained in:
Torkel Ödegaard
2015-06-01 14:16:59 +02:00
parent afede880e6
commit 50645cc36b
5 changed files with 21 additions and 20 deletions

View File

@@ -90,6 +90,12 @@ function (angular, _, kbn) {
});
};
OpenTSDBDatasource.prototype.testDatasource = function() {
return this.performSuggestQuery('cpu', 'metrics').then(function () {
return { status: "success", message: "Data source is working", title: "Success" };
});
};
function transformMetricData(md, groupByTags, options) {
var metricLabel = createMetricLabel(md, options, groupByTags);
var dps = [];