nestjs-otel-prom-grafana-tempo icon indicating copy to clipboard operation
nestjs-otel-prom-grafana-tempo copied to clipboard

Lookup loki on 127.0.0.11:53: server misbehaving

Open pormel opened this issue 1 year ago • 4 comments

Hi

Thank you for your work. When I run docker-compose up, I get this error

promtail-1 | level=warn ts=2024-07-15T23:46:34.436089013Z caller=client.go:419 component=client host=loki:3100 msg="error sending batch, will retry" status=-1 tenant=tenant1 error="Post "http://loki:3100/loki/api/v1/push": dial tcp: lookup loki on 127.0.0.11:53: server misbehaving

Any clues?

TIA

pormel avatar Jul 15 '24 23:07 pormel

For me, Loki is not starting due to a permission issue:

level=error ts=2025-02-08T20:22:24.488673253Z caller=log.go:171 msg="error running loki" err="mkdir /tmp/loki/rules: permission denied\nerror initialising module: ruler-storage\ngithub.com/grafana/dskit/modules.(*Manager).initModule\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:122\ngithub.com/grafana/dskit/modules.(*Manager).InitModuleServices\n\t/src/loki/vendor/github.com/grafana/dskit/modules/modules.go:92\ngithub.com/grafana/loki/pkg/loki.(*Loki).Run\n\t/src/loki/pkg/loki/loki.go:458\nmain.main\n\t/src/loki/cmd/loki/main.go:110\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1598"

Hence, Loki is not running, and all communication with it results in an error.

kdaniel21 avatar Feb 08 '25 20:02 kdaniel21

I have create a new fork version of it where i fix all the port problems. also i will grow the observability adding more dimensions in the services.

herhu avatar Mar 20 '25 11:03 herhu

I will take a look, and PRs are always welcome!

pragmaticivan avatar Mar 20 '25 19:03 pragmaticivan

Yes! I will don the right way ! I just fork it so tomorrow I will be available to request a PR :) so far I add new instrumentation.

herhu avatar Mar 20 '25 19:03 herhu

This should be sorted

pragmaticivan avatar Jul 02 '25 00:07 pragmaticivan