Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PromQL] Percentile parsing #4543

Open
aurrelhebert opened this Issue Aug 27, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@aurrelhebert
Copy link

aurrelhebert commented Aug 27, 2018

Proposal

Use case. Why is this important?
When add an incorrect parameter for quantile function, a result is loaded

Nice to have' is not a good use case :)
You can test it with: "percentile(2.0, metric...)

Bug Report

What did you do?
Just execute command below on Prometheus

What did you expect to see?
An error message

What did you see instead? Under which circumstances?
A result (+inf)

Environment

  • Prometheus version: 2.3.1
@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Aug 27, 2018

May I ask why this makes a difference to you? Changing this would be a breaking change, as it is the documented behaviour of our quantile functions.

@aurrelhebert

This comment has been minimized.

Copy link
Author

aurrelhebert commented Aug 27, 2018

We are working on PromQL proxies and validate the query with the parser first. We didn't expect this to be a valid request.
That's why we added some checks before on our side.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Aug 27, 2018

This is valid, though not particularly sane, PromQL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.