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
openmetricslex.l
openmetricslex.l.go
openmetricsparse.go
openmetricsparse_test.go
promlex.l
promlex.l.go
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
promtestdata.txt Add an OpenMetrics parser. 2018-10-18 13:58:00 +01:00