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

text format parsing error in line 3: expected integer as timestamp, got "" #1469

Closed
ringtail opened this issue Mar 8, 2016 · 6 comments
Closed

Comments

@ringtail
Copy link

ringtail commented Mar 8, 2016

here is my metrics

# HELP suminfo_oss_sum The total number of failed messages sent. 
# TYPE suminfo_oss_sum counter
suminfo_oss_sum 4424 
# HELP suminfo_osssize_sum The total number of failed messages sent. 
# TYPE suminfo_osssize_sum counter
suminfo_osssize_sum 0 1
@grobie grobie added the question label Mar 8, 2016
@grobie
Copy link
Member

grobie commented Mar 8, 2016

What are you trying to do in line 6? You're exporting two values there, 0 and 1. Assuming you're not trying to set a manual timestamp, you should remove one of the two.

You can find the documentation about the text format here: http://prometheus.io/docs/instrumenting/exposition_formats/#text-format-details

@ringtail
Copy link
Author

ringtail commented Mar 8, 2016

sorry but I can't still pass

# HELP suminfo_oss_sum The total number of failed messages sent. 
# TYPE suminfo_oss_sum counter
suminfo_oss_sum 4424 
# HELP suminfo_osssize_sum The total number of failed messages sent. 
# TYPE suminfo_osssize_sum counter
suminfo_osssize_sum  1

@beorn7
Copy link
Member

beorn7 commented Mar 8, 2016

@ringtail You have trailing whitespace in line 3.

I guess the parser should tolerate that. I'll open an issue in the appropriate package.
For now, just remove the trailing whitespace.

@beorn7
Copy link
Member

beorn7 commented Mar 8, 2016

prometheus/common#33 for the separate issue.

@ringtail Please re-open if removing the trailing whitespace doesn't fix your issue.

@beorn7 beorn7 closed this as completed Mar 8, 2016
@ringtail
Copy link
Author

ringtail commented Mar 8, 2016

Thank you !!!

@lock
Copy link

lock bot commented Mar 24, 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 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants