prometheus/pkg/textparse
Giedrius Statkevičius 10ec2552af promparse: sort all labels when parsing (#5372)
* promparse: sort all labels when parsing

Some label names might start with an uppercase letter in which case it
needs to come before __name__. Without this it means that we are not
maintaining the same invariant that all label names should be sorted in
such cases.

Amend the tests to check this problem automatically. Without the change
the tests do not pass.

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
2019-03-16 10:10:07 +00:00
..
interface.go Expand OM to OpenMetrics 2018-10-18 14:16:41 +01:00
openmetricslex.l Expand OM to OpenMetrics 2018-10-18 14:16:41 +01:00
openmetricslex.l.go Expand OM to OpenMetrics 2018-10-18 14:16:41 +01:00
openmetricsparse.go github.com/cznic/golex has moved to modernc.org/golex (#5034) 2018-12-24 23:59:32 +01:00
openmetricsparse_test.go Expand OM to OpenMetrics 2018-10-18 14:16:41 +01:00
promlex.l Prepare for multiple text formats 2018-10-18 13:58:00 +01:00
promlex.l.go Expand OM to OpenMetrics 2018-10-18 14:16:41 +01:00
promparse.go promparse: sort all labels when parsing (#5372) 2019-03-16 10:10:07 +00:00
promparse_test.go promparse: sort all labels when parsing (#5372) 2019-03-16 10:10:07 +00:00
promtestdata.nometa.txt Add an OpenMetrics parser. 2018-10-18 13:58:00 +01:00
promtestdata.txt Add an OpenMetrics parser. 2018-10-18 13:58:00 +01:00