We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Telegraf 0.13.1
When parsing the output anything with a _count should be properly parsed into the count field of the telegraf.Metric
_count
telegraf.Metric
The count value stays 0 and is sent with 0 in every dataset. e.g.
http_request_duration_seconds,code=200,host=localhost,method=get,path=/metrics,url=http://localhost:4007/metrics 0.5=0.003071558,0.9=0.003609577,0.99=0.003609577,count=0,sum=0.009393333 1465218854910415916
There are actually tests for this, but they test it in the same wrong way, namely by expecting 0. See for test data:
telegraf/plugins/inputs/prometheus/parser_test.go
Line 31 in bac1c22
Line 141 in bac1c22
The issue appears to be caused by selecting the wrong prometheus metrics type when filling the telegraf.Metric
See
telegraf/plugins/inputs/prometheus/parser.go
Line 77 in bac1c22
The text was updated successfully, but these errors were encountered:
closed by #1337
Sorry, something went wrong.
No branches or pull requests
Bug report
System info:
Telegraf 0.13.1
Steps to reproduce:
Expected behavior:
When parsing the output anything with a
_count
should be properly parsed into the count field of thetelegraf.Metric
Actual behavior:
The count value stays 0 and is sent with 0 in every dataset.
e.g.
Additional info:
There are actually tests for this, but they test it in the same wrong way, namely by expecting 0.
See for test data:
telegraf/plugins/inputs/prometheus/parser_test.go
Line 31 in bac1c22
See for (invalid) expectation:
telegraf/plugins/inputs/prometheus/parser_test.go
Line 141 in bac1c22
The issue appears to be caused by selecting the wrong prometheus metrics type when filling the
telegraf.Metric
See
telegraf/plugins/inputs/prometheus/parser.go
Line 77 in bac1c22
The text was updated successfully, but these errors were encountered: