-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Loki asking DNS to resolve localhost #1928
Comments
Found this alpine issue about Which is actually caused by Go having unexpected behaviour when It looks like most people are adding a valid
|
This behavior is likely intentional, Loki running as a single binary actually makes GRPC calls to itself, I'm wondering if in doing so it periodically makes DNS requests to resolve localhost. Thanks for doing the legwork on that alpine issue. Is your understanding that if we add that workaround the DNS calls would be handled by the etc/hosts file and thus prevent the need for an external DNS call? |
@slim-bean Yes, I just tested it and it stopped the DNS calls. I threw up #1949 to fix this and also cleanup the Dockerfile a bit |
Also, DNS servers don't always return a response for |
Remove the fix that was added for grafana/loki#1928 as we have upgraded the loki version.
Describe the bug
When monitoring my DNS server (to reduce the amount of DNS calls because of Kubernetes ndots:5), I noticed that Loki is asking the DNS server to resolve localhost every minute:
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
A clear and concise description of what you expected to happen.
Environment:
Screenshots, Promtail config, or terminal output
Config:
The text was updated successfully, but these errors were encountered: