Просмотр исходного кода

Merge branch 'master' of github.com:grafana/grafana

Torkel Ödegaard 10 лет назад
Родитель
Сommit
8789be7671
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      public/app/plugins/datasource/kairosdb/datasource.js

+ 4 - 0
public/app/plugins/datasource/kairosdb/datasource.js

@@ -284,6 +284,10 @@ function (angular, _, dateMath, kbn) {
       query.aggregators = [];
 
       if (target.downsampling !== '(NONE)') {
+        if (target.downsampling === undefined) {
+          target.downsampling = 'avg';
+          target.sampling = '10s';
+        }
         query.aggregators.push({
           name: target.downsampling,
           align_sampling: true,