-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
query-frontend logs failed to parse host port for http log decision #4320
Comments
I feel this issue is related to the logging middleware instead of query frontend. CC @yashrsharma44. The error happens at https://github.com/thanos-io/thanos/blob/main/pkg/logging/http.go#L43-L51. If there is no port in the address, can we do something to skip this error? |
@yeya24 @yashrsharma44 Hi. I also encountered this error log, although it does not affect the use of the service. I want to introduce the situation on my side. This is my version information and error log thanos --version
thanos, version 0.21.0 (branch: HEAD, revision: d19aea21b178a6c08838c6a05b834dd44ef14273)
build user: root@30b80273f41d
build date: 20210603-13:49:01
go version: go1.16.4
platform: linux/amd64
# error print
{"caller":"http.go:48","err":"address thanos.demo.io: missing port in address","http.component":"server","level":"error","msg":"failed to parse host port for http log decision","protocol":"http","ts":"2021-06-11T17:55:11.136477708Z"} Lines 43 to 51 in 7c6c505
|
I am also seeing the same issue on a few Thanos clusters I am using. 0.19.0 did not have this issue, but when I upgraded to 0.21.1 I started seeing lots of these logs. |
Signed-off-by: Srikrishna Paparaju <[email protected]>
|
This PR fixes this issue. |
Signed-off-by: Srikrishna Paparaju <[email protected]> Signed-off-by: Srikrishna Paparaju <[email protected]>
* fix for #4320 Signed-off-by: Srikrishna Paparaju <[email protected]> Signed-off-by: Srikrishna Paparaju <[email protected]> * add unit test Signed-off-by: Srikrishna Paparaju <[email protected]>
Should be solved in #4348. Thanks @spaparaju |
Thanos, Prometheus and Golang version used:
What happened:
I have deployed the
query-frontend
to the Kubernetes and there are a lot of logs like this in the container:Here are the command-line flags for the
query-frontend
:What you expected to happen:
I haven't defined any address for
query-frontend
in the command-line arguments, if the logger is fetching the address from the user's request why it cannot determine the port address?How to reproduce it (as minimally and precisely as possible):
Full logs to relevant components:
Anything else we need to know:
The text was updated successfully, but these errors were encountered: