Skip to content

Add exemplar support to the openmetrics parser#6292

Merged
brian-brazil merged 9 commits intoprometheus:masterfrom
shreyassrivatsan:ss/exemplar_support
Nov 19, 2019
Merged

Add exemplar support to the openmetrics parser#6292
brian-brazil merged 9 commits intoprometheus:masterfrom
shreyassrivatsan:ss/exemplar_support

Conversation

@shreyassrivatsan
Copy link
Copy Markdown
Contributor

The change adds support for exemplars in the openmetrics exposition format. It includes changes to the grammar and parsing of the expression along with tests.

It does change the behavior of the grammar. Now we expect an exemplar after the # after a metric. The earlier grammar allow for random comments that were consumed by the parser.

@shreyassrivatsan shreyassrivatsan force-pushed the ss/exemplar_support branch 2 times, most recently from f12baf8 to c98c70c Compare November 7, 2019 16:58
Copy link
Copy Markdown
Contributor

@brian-brazil brian-brazil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More negative unittests would be useful.

@brian-brazil
Copy link
Copy Markdown
Contributor

Hmm, can you rebase to try and get rid of that test failure?

@beorn7 beorn7 self-requested a review November 13, 2019 12:48
Signed-off-by: Shreyas Srivatsan <[email protected]>
Signed-off-by: Shreyas Srivatsan <[email protected]>
Signed-off-by: Shreyas Srivatsan <[email protected]>
Signed-off-by: Shreyas Srivatsan <[email protected]>
Signed-off-by: Shreyas Srivatsan <[email protected]>
Signed-off-by: Shreyas Srivatsan <[email protected]>
Signed-off-by: Shreyas Srivatsan <[email protected]>
Signed-off-by: Shreyas Srivatsan <[email protected]>
@shreyassrivatsan
Copy link
Copy Markdown
Contributor Author

Hmm, can you rebase to try and get rid of that test failure?

Rebased and got rid of the test failures.

@brian-brazil brian-brazil merged commit e825282 into prometheus:master Nov 19, 2019
@brian-brazil
Copy link
Copy Markdown
Contributor

Thanks!

@shreyassrivatsan shreyassrivatsan deleted the ss/exemplar_support branch November 19, 2019 19:25
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