configure loki as prometheus data source not working

Viewed 1587

I wanted to create an alert if there is an error in the logs. I have added Loki as a Prometheus data source in Grafana. Appended Loki to the end of your URL, like this: http://ipaddress:3100/loki with basic auth and selected the Prometheus data source type but while adding the data source it throws 500 error and when I checked logs its says unknown error(500). I'm not sure what's going wrong here. To make sure Loki works fine, I have added the URL(http://ipaddress:3100) in Loki data source with basic auth and checked whether it's working or not. As expected it's worked. But not sure why it's not working when Loki was added as a Prometheus data source. Does anybody know what caused this error?.

Note: i'm using cloud prometheus operator instance

1 Answers
Related