New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana proxy queries timeout after 30s with dataproxy.timeout and dataproxy.keep_alive_seconds to > 30s #35505
Comments
Duplicate of #34177 |
Fixed and included in Grafana v8.0.0. |
@marefr
The request to datasource will still be canceled in 30 seconds from debug logs: /cc @dsotirakis Am I missing something? |
Hello @morvencao, I tried to reproduce on both Are you sure that you are tweaking the right configs and/or fields? Do you tweak them inside |
I then updated the configuration to only set
but still getting the "Gateway timeout!" after 30 seconds.
I created my own configuration in file called |
@morvencao to me it looks like your Prometheus times out after ~30 seconds. Have you tried to configure query timeout If that doesn't make any difference it could also be limitations in your network stack. |
@marefr Yes, I did set the
Also I still found the
|
@morvencao please try with Grafana v8.0.2. If still the same problem I would believe something in your network stack is closing the TCP connection after 30 seconds. You probably want to use something like wireguard to investigate this further. |
thanks @marefr
I'll try to debug my network with your suggest tool, thank you again. |
@morvencao The datasources configuration page usually has a timeout field that when left blank defaults to 30s. You can try to modify the timeout there. |
I know |
What happened:
Relevant to #27839
Long running queries to thanos are failed after 30 seconds with a
504 Gateway timeout
issue despitedataproxy.timeout
anddataproxy.keep_alive_seconds
set to>30s
when run behind a network proxy.What you expected to happen:
Expect that queries should not appear to time out in less time than has been configured in the
dataproxy.timeout
anddataproxy.keep_alive_seconds
setting.How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: