VictoriaMetrics/lib/protoparser/opentelemetry/stream
Aliaksandr Valialkin 0379a0eb82
lib/protoparser/opentelemetry: allow ingesting metrics without resource labels
Some clients may ingest samples via OpenTelemetry protocol without Resource labels.
Previously VictoriaMetrics was silently dropping such samples.

The commit 317834f876 added vm_protoparser_rows_dropped_total{type="opentelemetry",reason="resource_not_set"}
counter for tracking of such dropped samples. See https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5459

It is better from usability PoV to accept such samples instead of dropping them and incrementing the corresponding counter.
2023-12-17 19:12:58 +02:00
..
streamparser_test.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-25 21:24:03 +02:00
streamparser_timing_test.go lib/protoparser: adds opentelemetry parser (#2570) 2023-07-27 13:26:45 -07:00
streamparser.go lib/protoparser/opentelemetry: allow ingesting metrics without resource labels 2023-12-17 19:12:58 +02:00