mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Added global datasource config option cacheTimeout for graphite datasource, #266
This commit is contained in:
parent
8aed1aa634
commit
272ea9fe17
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user