lib/protoparser/prometheus: follow-up commit after 7d38627b9f6f212ae602aea6a72f469fe3c70ba2

Document the bugfix in docs/CHANGELOG.md and add a test for the bugfix.
This commit is contained in:
Aliaksandr Valialkin 2020-12-16 23:40:12 +02:00
parent 60dd48c9eb
commit 4fd2973e7c
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
# tip
* BUGFIX: properly parse lines in [Prometheus exposition format](https://github.com/prometheus/docs/blob/master/content/docs/instrumenting/exposition_formats.md) and in [OpenMetrics format](https://github.com/OpenObservability/OpenMetrics/blob/master/specification/OpenMetrics.md) with whitespace after the timestamp. For example, `foo 123 456 # some comment here`. See https://github.com/VictoriaMetrics/VictoriaMetrics/pull/970
# [v1.50.1](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v1.50.1)

View File

@ -205,7 +205,7 @@ cassandra_token_ownership_ratio 78.9`, &Rows{
// Exemplars - see https://github.com/OpenObservability/OpenMetrics/blob/master/OpenMetrics.md#exemplars-1
f(`foo_bucket{le="10",a="#b"} 17 # {trace_id="oHg5SJ#YRHA0"} 9.8 1520879607.789
abc 123 456#foobar
abc 123 456 # foobar
foo 344#bar`, &Rows{
Rows: []Row{
{