app/vmselect/promql: tolerate higher jitter in scrape interval

Allow jitter for up to 1/8 instead of 1/16 for the scrape interval.
This should imrpove graphs when `step` is smaller than the `scrape_interval`.
This commit is contained in:
Aliaksandr Valialkin 2019-08-01 23:14:09 +03:00
parent 10caad4728
commit f090b2e917

View file

@ -234,7 +234,7 @@ func getMaxPrevInterval(timestamps []int64) int64 {
return 1
}
// Slightly increase d in order to handle possible jitter in scrape interval.
return d + (d / 16)
return d + (d / 8)
}
func removeCounterResets(values []float64) {