Przeglądaj źródła

Merge pull request #2898 from zachm/ztm_patch_missing_downsample

Fix missing downsampling name in kairos plugin
Torkel Ödegaard 10 lat temu
rodzic
commit
df4d5ea8a6

+ 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,