Running Grafana Loki (OSS) on Fly

I’m interested in running grafana loki (OSS log aggregation platform) on Fly.

So far, I’ve been able to create the loki instance without much trouble: Kick off with fly launch --image grafana/loki:<version> and off to the races. I can connect this to a Grafana instance running on fly and even send logs from a local machine to the loki instance. So far, so good.

That said, shipping actual Fly logs to this self-hosted loki instance has proved challenging. Setting the LOKI_URL secret in fly-log-shipper doesn’t seem to do anything.

What’s the best way to connect fly-log-shipper to a self-hosted Loki instance?

Hi @fritzblue

Did you try using the internal address, <LOKI-APP-NAME>.internal for the LOKI_URL in log-shipper?

Ah, I had http://<LOKI-APP-NAME>.internal:3100 but it looks like just <LOKI-APP-NAME>.internal appears to do the trick. Thanks @dusty!