VictoriaMetrics/lib/protoparser/opentelemetry/stream
Aliaksandr Valialkin bb9bb600b3
lib/protoparser/opentelemetry: follow-up after 47892b4a4c
- Rename -opentelemetry.sanitizeMetrics command-line flag to more clear -opentelemetry.usePrometheusNaming
- Clarify the description of the change at docs/CHANGELOG.md
- Rename promrelabel.SanitizeLabelNameParts to more clear promrelabel.SplitMetricNameToTokens
- Properly split metric names at '_' char in promerlabel.SplitMetricNameToTokens.
- Add tests for various edge cases for Prometheus metric names' normalization
  according to the code at b865505850/pkg/translator/prometheus/normalize_name.go
- Extract the code responsible for Prometheus metric names' normalization into a separate file (santize.go)

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/6037
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6035
2024-04-03 03:09:52 +03:00
..
sanitize.go lib/protoparser/opentelemetry: follow-up after 47892b4a4c 2024-04-03 03:09:52 +03:00
sanitize_test.go lib/protoparser/opentelemetry: follow-up after 47892b4a4c 2024-04-03 03:09:52 +03:00
streamparser.go lib/protoparser/opentelemetry: follow-up after 47892b4a4c 2024-04-03 03:09:52 +03:00
streamparser_test.go lib/protoparser/opentelemetry: follow-up after 47892b4a4c 2024-04-03 03:09:52 +03:00
streamparser_timing_test.go all: fix golangci-lint(revive) warnings after 0c0ed61ce7 2024-04-03 03:00:45 +03:00