Skip to content

promparse: sort all labels when parsing#5372

Merged
brian-brazil merged 2 commits intoprometheus:masterfrom
GiedriusS:fix_parser
Mar 16, 2019
Merged

promparse: sort all labels when parsing#5372
brian-brazil merged 2 commits intoprometheus:masterfrom
GiedriusS:fix_parser

Conversation

@GiedriusS
Copy link
Contributor

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.

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>
Make it clearer that the labels should be sorted.

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>
@brian-brazil
Copy link
Contributor

Thanks!

@jjneely
Copy link
Contributor

jjneely commented Apr 1, 2019

We were hoping to see this in 2.8.1 to address the label ordering bugs we have with Thanos. Is it possible to have this in a future 2.8 release, or does this need to wait for 2.9?

@brian-brazil
Copy link
Contributor

2.9 will start next week, so I'm not sure there's a point in putting out a bugfix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants