Dynamically pass memberlist details such as ip address in a scalable loki cluster

Are you using ECS? If so the discussions here might be helpful to you: Loki 2.4.1 empty ring Code(500) error for "GET /loki/api/v1/labels" API on AWS ECS - #10 by tonyswumac

If not, please specify what deployment method you are using.