I am getting this while querying in Grafana, is it coming from loki ?. If yes then where I need to add timeout for proxy and other things. We are using ambassador there we have 300 seconds timeout. When I searched this I get to know we need to add these three flag in nginx conf. But I am not getting where to add, because there are several routes in values.yaml
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
I would try to shell into the grafana pod and try to connect to the url you are getting the 504 on typically the pod will have something like wget or telnet or ping.
If you cant connect that way then try with the internal dns name within your cluster. You most likely need to whitelist the ip or ip range of the loki pod on your security group for the cluster inbound.