grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.3k stars 3.38k forks source link

In Windows Promtail does not respect `hosts` file #11292

Open teyyubismayil opened 9 months ago

teyyubismayil commented 9 months ago

Describe the bug In Windows Promtail does not respect hosts file because of the known issue with netgo flag. Suggested fix is building windows binaries without netgo flag

To Reproduce Steps to reproduce the behavior:

  1. Add some record for Loki server in hosts file
  2. Start Promtail with specified host for Loki

Expected behavior It is expected that Promtail will be able to connect to Loki, but host is not resolved

Environment:

cstyan commented 8 months ago

It looks like the underlying problem has already been fixed, so newer go versions should solve this for us.

sjansen1 commented 5 months ago

Any news on this issue? latest promtail still have this issue.

cstyan commented 4 months ago

it looks like the underlying problem was only fixed in go 1.22 and we're still using a patch release of go 1.21 to build promtail