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.0 does not like non-string label values #8

Closed
omadawn opened this issue Nov 12, 2017 · 0 comments
Closed

Prometheus 2.0 does not like non-string label values #8

omadawn opened this issue Nov 12, 2017 · 0 comments
Labels

Comments

@omadawn
Copy link
Contributor

omadawn commented Nov 12, 2017

Prometheus version 2 does not like non-string label values. The following output
ssh_exporter_test_simple_exit_status{name="test_simple",host="localhost",user="vagrant",script="echo output script",exit_status=0} 0

Note the lack of quotes around exit_status. This causes Prometheus to throw an error when trying to parse the page. "No token found" will be seen in the prometheus logs and the results are not stored in the TSDB.

Updated the output to quote the results.

ssh_exporter_test_simple_exit_status{name="test_simple",host="localhost",user="vagrant",script="echo output script",exit_status="0"} 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant