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

Cannot use + sign in Prometheus Query #4891

Open
invokermain opened this issue May 14, 2020 · 1 comment
Open

Cannot use + sign in Prometheus Query #4891

invokermain opened this issue May 14, 2020 · 1 comment

Comments

@invokermain
Copy link

invokermain commented May 14, 2020

Fail test query: up+1
Fail message: "error":"invalid parameter 'query': 1:4: parse error: unexpected number \"1\"
Success test query: up%2B1

I believe the plus sign needs to be URL encoded. This issue does not affect the other basic operators (-, /, *, ^, %).

Happy to submit a PR to fix this.

@arikfr
Copy link
Member

arikfr commented May 17, 2020 via email

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

No branches or pull requests

2 participants