VictoriaMetrics/app/vminsert/netstorage
f41gh7 b745f8eb2b
app/vminsert: properly ingest influx metrics
Commit 71bb9fc0d0 introduced a regression.
If labels are empty and relabeling is not configured, influx ingestion hanlder
performed an earlier exit due to TryPrepareLabels call.
 Due micro-optimisations for this procotol, this check was not valid.
Since it didn't take in account metircName, which added later and skip metrics line.

 This commit removes `TryPrepareLabel` function call from this path and inline it instead.
It properly track empty labels path.

 Adds initial tests implementation for data ingestion protocols.

 Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/7933

Signed-off-by: f41gh7 <nik@victoriametrics.com>
2024-12-26 13:02:43 +01:00
..
consistent_hash.go app/vminsert/netstorage: prevent from infinite loop when the re-routing is enabled and all the vmstorage nodes are unavailable 2024-02-25 03:24:51 +02:00
consistent_hash_test.go app/vminsert: improve re-routing logic in order to spread rows more evenly among the available storage nodes 2022-02-06 20:20:02 +02:00
consistent_hash_timing_test.go app: consistently use atomic.* types instead of atomic.* functions 2024-02-24 03:06:14 +02:00
insert_ctx.go app/vminsert: properly ingest influx metrics 2024-12-26 13:02:43 +01:00
insert_ctx_pool.go app/vminsert: returns back memory optimisation (#6794) 2024-08-13 10:49:09 -04:00
netstorage.go vminsert: sort the storage nodes during initialization (#7899) 2024-12-23 10:18:32 +07:00
netstorage_test.go app/{vminsert,vmselect}: speed up TestInitStopNodes() 2022-12-03 23:53:14 -08:00
sort_labels.go app/vminsert: properly ingest influx metrics 2024-12-26 13:02:43 +01:00