mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added test connection action to all data sources, Closes #1997
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user