What exactly does the setting of dataproxy timeout control

I’d try to increase the query timeout limit as some of my elasticsearch datasource queries need minutes to complete. However no matter what value i set in the dataproxy timeout, i will face following error in 60 seconds.

t=2020-02-05T18:29:17-0800 lvl=info msg=“Request Completed” logger=context userId=1 orgId=1 uname=admin method=POST path=/api/datasources/proxy/37/query status=502 remote_addr=172.xxx.xxx.xxx time_ms=60001 size=0 referer=“xxxx”

Grafana version: 6.6.0

1 Like

Hi @jehutywong,
Did you managed to force different timeout setting?
I use dataproxy timeout in grafana.ini but seems it’s not being honored for some reason.

Thanks

I face the same problem. I have connected Grafana to an InfluxDB data source.

I have extended the config /etc/grafana/grafana.ini as below and restarted the grafana-server service.

[dataproxy]
timeout = 1200

Yet if I run large queries in Grafana (which I expect to take several minutes) I get the timeout error below.

Post “http://localhost:8086/api/v2/query?org=main-org”: net/http: timeout awaiting response headers (Client.Timeout exceeded while awaiting headers)

It seems the client i.e. Grafana runs into a timeout. But my config changes have no effect.

Grafana version: 10.2.2

As a reference, the problem is discussed in this Grafana GitHub issue.