VictoriaMetrics/lib/protoparser/opentelemetry/stream
Aliaksandr Valialkin 76b120e355
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:16:43 +02:00
..
streamparser.go lib/protoparser/opentelemetry: allow ingesting metrics without resource labels 2023-12-17 19:16:43 +02:00
streamparser_test.go all: consistently use %w instead of %s in when error is passed to fmt.Errorf() 2023-10-26 09:44:40 +02:00
streamparser_timing_test.go lib/protoparser: adds opentelemetry parser (#2570) 2023-07-27 13:37:15 -07:00