VictoriaMetrics/app/vmselect/promql
nicbaz 46c5c0772c vmselect: fix label_replace when mismatch (#579)
As per documentation on `label_replace` function: "If the regular
expression doesn't match then the timeseries is returned unchanged".

Currently this behavior is not enforced, if a regexp on an existing
tag doesn't match then the tag value is copied as-is in the destination
tag. This fix first checks that the regular expression matches the
source tag before applying anything.

Given the current implementation, this fix also changes the behavior
of the **MetricsQL** `label_transform` function which does not
document this behavior at the moment.
2020-06-23 23:54:29 +03:00
..
aggr.go app/vmselect/promql: move common code from aggrFuncOutliersK and newAggrFuncRangeTopK into getRangeTopKTimeseries 2020-05-19 16:11:03 +03:00
aggr_incremental.go app/vmselect/promql: suppress "SA4006: this value of dstValues is never used" error in golangci-lint 2020-05-13 11:46:05 +03:00
aggr_incremental_test.go lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
binary_op.go app/vmselect/promql: properly override label values from group_left and group_right lists like Prometheus does 2020-06-21 16:32:27 +03:00
eval.go app/vmselect/promql: remove -search.maxPointsPerTimeseries command-line flag 2020-05-12 19:54:44 +03:00
exec.go lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
exec_test.go vmselect: fix label_replace when mismatch (#579) 2020-06-23 23:54:29 +03:00
memory_limiter.go app/vmselect/promql: use dynamic limit on memory for concurrent queries 2019-06-12 23:18:23 +03:00
memory_limiter_test.go app/vmselect/promql: use dynamic limit on memory for concurrent queries 2019-06-12 23:18:23 +03:00
parser.go lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
parser_test.go Rename lib/promql to lib/metricsql and apply small fixes 2019-12-25 22:09:09 +02:00
rollup.go app/vmselect/promql: add ascent_over_time(m[d]) and descent_over_time(m[d]) functions 2020-05-21 12:06:34 +03:00
rollup_result_cache.go lib: extract common code for returning fast unix timestamp into lib/fasttime 2020-05-14 23:06:50 +03:00
rollup_result_cache_test.go lib/metricsql: move it to a separate repository - github.com/VictoriaMetrics/metrics 2020-04-28 15:30:06 +03:00
rollup_test.go app/vmselect/promql: add ascent_over_time(m[d]) and descent_over_time(m[d]) functions 2020-05-21 12:06:34 +03:00
rollup_timing_test.go all: open-sourcing single-node version 2019-05-23 00:18:06 +03:00
timeseries.go Makefile: add build and test rules with enabled race detector. These rules have -race suffix 2020-03-05 12:05:16 +02:00
timeseries_test.go app/vmselect/promql: store compressed results in the cache 2019-08-14 02:32:16 +03:00
transform.go vmselect: fix label_replace when mismatch (#579) 2020-06-23 23:54:29 +03:00