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

Prometheus 2: new parser fails to parse comments, parseFloat error #2688

Closed
mwitkow opened this Issue May 8, 2017 · 3 comments

Comments

Projects
None yet
2 participants
@mwitkow
Copy link
Contributor

mwitkow commented May 8, 2017

What did you do?
run the latest dev-2.0 branch with federation

What did you expect to see?
A working federation.

What did you see instead? Under which circumstances?

On a /federate endpoint that has:

# TYPE deployment:nodes_up::sum untyped
deployment:nodes_up::sum{app="gamex",dpl="qualify_27723",job="nodes",cluster="eu1-testing",instance="",monitor="simleaf-1"} 12 1494256282841

The scraping Prometheus instance sees:

strconv.ParseFloat: parsing "# TYPE deployment:nodes_up::sum untyped\ndeployment:nodes_up::sum{app=\"gamex\",dpl=\"qualify_27723\",job=\"nodes\",cluster=\"eu1-testing\",instance=\"\",monitor=\"simleaf-1\"}": invalid syntax

Environment
Manually built from commit:
8c483e2

@fabxc

@fabxc

This comment has been minimized.

Copy link
Member

fabxc commented May 8, 2017

Oh, it's not actually the comments but the : in the metric name. The error message is just obscure because the parser is really not optimized for nice errors :)

It's actually defined here but I missed to use it properly.

@mwitkow

This comment has been minimized.

Copy link
Contributor Author

mwitkow commented May 10, 2017

Verified that it works for our federation set up. Cheers 🍻!

@mwitkow mwitkow closed this May 10, 2017

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

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