Adding Loki as a Prometheus data source returns 500 error

I’m trying to add a Loki as a Prometheus data source. I have read in multiple guides that this is possible by using /loki, but now it’s returning a 500 error. I tried to open a github issue about this, but it got closed immediately.

Steps to reproduce the behavior:

  1. Started Loki (2.5.0)
  2. Started Promtail (2.4.0)
  3. Attempt to add a new Prometheus data source with the following url: http://loki:3100/loki
  • Infrastructure: docker

image
image

If anyone has been able to get something like this to work please let me know. I’m new to all of this!