Commit 272ea9fe by Torkel Ödegaard

Added global datasource config option cacheTimeout for graphite datasource, #266

parent 8aed1aa6
......@@ -22,6 +22,7 @@ function (angular, _, $, config, kbn, moment) {
this.render_method = datasource.render_method || 'POST';
this.supportAnnotations = true;
this.annotationEditorSrc = 'app/partials/graphite/annotation_editor.html';
this.cacheTimeout = datasource.cacheTimeout;
}
GraphiteDatasource.prototype.query = function(filterSrv, options) {
......@@ -31,7 +32,7 @@ function (angular, _, $, config, kbn, moment) {
until: this.translateTime(options.range.to, 'round-up'),
targets: options.targets,
format: options.format,
cacheTimeout: options.cacheTimeout,
cacheTimeout: options.cacheTimeout || this.cacheTimeout,
maxDataPoints: options.maxDataPoints,
};
......
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