Getting gateway timeout errors

we are using postgresql as datasource, in dashboard we are using base panel method which is built of seven queries. but whenever we are trying to fetch the data for 3 or more than 3 days we are getting gateway timeout.

  • What Grafana version and what operating system are you using?
    we are using AWS Managed Grafana version 8.4.7

  • What are you trying to achieve?
    trying to build dashboard in grafana out of data stored in postgresql data

  • How are you trying to achieve it?
    Using custom postgres queries

  • What happened?
    Getting 504 gateway time out while trying to pull data for last 7 days but we are able to fetch data for other timeframes like 5min,15min,1 day. Not able to fetch the data for more than one day

504 Gateway Time-out

504 Gateway Time-out

  • What did you expect to happen?
    Expect to populate data

  • Can you copy/paste the configuration(s) that you are having problems with?
    we dont have any access to grafana backend server as it is aws managed grafana

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

504 Gateway Time-out

504 Gateway Time-out

  • Did you follow any online instructions? If so, what is the URL?
    no