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 errors when parsing /metrics generated by nginx-lua-prometheus #3

Closed
tomwilkie opened this issue Jun 27, 2016 · 1 comment

Comments

@tomwilkie
Copy link

Entries like this appear:

nginx_http_request_duration_seconds_bucket{host="'"",le="00.010"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.020"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.030"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.050"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.075"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.100"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.200"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.300"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.400"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.500"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="00.750"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="01.000"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="01.500"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="02.000"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="03.000"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="04.000"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="05.000"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="10.000"} 1
nginx_http_request_duration_seconds_bucket{host="'"",le="+Inf"} 1

I believe it because someone did a drive-by (host header attack)[http://www.skeletonscribe.net/2013/05/practical-http-host-header-attacks.html] on us. Should really do some escaping...

@knyar
Copy link
Owner

knyar commented Jun 28, 2016

Hi Tom! :)
Thanks for reporting this, I'll get it fixed later today.

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

No branches or pull requests

2 participants