grafana / loki

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

The otlp/v1/logs API on the loki gateway returns 404. #14238

Open jaca-p opened 1 week ago

jaca-p commented 1 week ago

Use Otel's automatic instrumentation.

The endpoint in mir and tempo works well, but the endpoint in loki returns 404. The endpoint address is correct.

Does anyone know why?

khanh1998 commented 2 days ago

I have the same issue with the latest version of Loki, I injected logs successfully via API /loki/api/v1/push, but when I tried the API /otlp/v1/logs it returned 404. I tried to curl the endpoint:

➜ curl -X POST "localhost:3100/otlp/v1/logs"
404 page not found
khanh1998 commented 2 days ago

@jaca-p After I switched to image grafana/loki:3.2.0, it worked. When the API returned 404, I was use grafana/loki:latest.