mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
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:
parent
a99e89945e
commit
ade7bc30db
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user