app/vmselect/promql: do not override [d] at last_over_time(m[d]) if [d] is smaller than scrape_interval

Since most users do not expect the overriding of explicitly set `[d]`.
This commit is contained in:
Aliaksandr Valialkin 2021-08-19 10:31:45 +03:00
parent 47a37b8cfc
commit ee1f3414d1
2 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,7 @@ var rollupFuncsCannotAdjustWindow = map[string]bool{
"ascent_over_time": true,
"descent_over_time": true,
"zscore_over_time": true,
"last_over_time": true,
}
var rollupFuncsRemoveCounterResets = map[string]bool{

View File

@ -17,6 +17,7 @@ sort: 15
* BUGFIX: vmagent: stop scrapers for deleted targets before starting scrapers for added targets. This should prevent from possible time series overlap when old targets are substituted by new targets (for example, during new deployment in Kubernetes). The overlap could lead to incorrect query results. See [this issue](https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1509).
* BUGFIX: vmagent: send Prometheus stale markers for the previously scraped metrics on failed scrapes like Prometheus does. See [this article](https://www.robustperception.io/staleness-and-promql).
* BUGFIX: upgrade base Docker image from Alpine 3.14.0 to Alpine 3.14.1 . This fixes potential security issues - see [Alpine 3.14.1 release notes](https://www.alpinelinux.org/posts/Alpine-3.14.1-released.html).
* BUGFIX: disable overriding the lookbehind window `[d]` at `last_over_time(m[d])` if `d` is smaller than the interval between samples, since users don't expect implicit overriding of explicitly set `[d]` in `last_over_time(m[d])`.
## [v1.64.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.64.0)