Commit 6b585493 by Daniel Lee Committed by GitHub

Merge pull request #11502 from marefr/graphite_ds_test

graphite: use a query when testing data source
parents b5a54c53 4cc80efe
......@@ -453,7 +453,13 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
};
this.testDatasource = function() {
return this.metricFindQuery('*').then(function() {
let query = {
panelId: 3,
rangeRaw: { from: 'now-1h', to: 'now' },
targets: [{ target: 'constantLine(100)' }],
maxDataPoints: 300,
};
return this.query(query).then(function() {
return { status: 'success', message: 'Data source is working' };
});
};
......
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