VictoriaMetrics/app/vminsert/common
Roman Khavronenko 491831df49
vminsert: properly reset labels object on aggregation (#4278)
Without reset, labels duplicates could have been added during stream aggregation.
Since `ctx.Labels` is reused during processing of many series, each series will
add its labels to the context. Even if the same labels were already addeded on prev
iteration. Now, we reset `ctx.Labels` on each iteration to contain so labels from
different series didn't interfere.

This could have cause exceeding of the limit on number of labels per pushed time series.

https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4277

Signed-off-by: hagen1778 <roman@victoriametrics.com>
2023-05-09 08:33:58 -07:00
..
insert_ctx.go lib/streamaggr: follow-up for ff72ca14b9 2023-03-31 22:30:38 -07:00
insert_ctx_pool.go all: properly handle CPU limits set on the host system/container 2020-12-08 21:07:29 +02:00
sort_labels.go app/{vminsert,vmagent}: add -sortLabels command-line option for sorting time series labels before ingesting them in the storage 2021-03-31 23:27:58 +03:00
streamaggr.go vminsert: properly reset labels object on aggregation (#4278) 2023-05-09 08:33:58 -07:00