Commit bdd239e9 by Alin Sinpalean Committed by Torkel Ödegaard

Prometheus: Fix actual step computation logic when a min_step is specified and…

Prometheus: Fix actual step computation logic when a min_step is specified and the range is longer than min_step * 11000. (#9109)
parent aef4eca2
......@@ -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);
};
......
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