Prometheus: Fix actual step computation logic when a min_step is specified and the range is longer than min_step * 11000.

pull/9109/head
Alin Sinpalean 8 years ago
parent 546f903141
commit 84c6caabc5
  1. 2
      public/app/plugins/datasource/prometheus/datasource.ts

@ -128,7 +128,7 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
// Prometheus drop query if range/step > 11000
// calibrate step if it is too big
if (step !== 0 && range / step > 11000) {
return Math.ceil(range / 11000);
step = Math.ceil(range / 11000);
}
return Math.max(step, autoStep);
};

Loading…
Cancel
Save