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

Improvement: Ignore beginning comma in query selectors #2676

Open
JensRantil opened this Issue May 4, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@JensRantil
Copy link

JensRantil commented May 4, 2017

Background: When I (in the Prometheus web GUI) query metrics, I generally first query for a list of all metrics and then copy-paste some selectors to refine my query.

Problem: Copy-pasting many times mistakenly includes a beginning comma (,). my_metric{instance="my-instance",} is gracefully handled by Prometheus but my_metric{,instance="my-instance"} is not and yields Error executing query: parse error at char 11: unexpected "," in label matching, expected identifier.

Proposed solution: That my_metric{,instance="my-instance"} is interpreted as my_metric{instance="my-instance"} and Prometheus is a bit more forgiving :-)

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.