Open van-vliet opened 7 months ago
@van-vliet Thank you for creating this issue. You are correct that this plugin is not using the timeout value. The documentation you linked indicates that not all plugins support setting a timeout. LogScale queries do not timeout unless they are no longer being polled, so the query should run until completion. We will investigate this further and have a fix. Polling query docs
What happened: We have a dashboard that uses the Logscale datasource to power some panels. Our querys toward Logscale time out after 1 minute. See screenshots:
The queries are heavy, so I want to increase the timeout.
We use provisioning to setup datasources. The official provisioning documentation mentioned a common timeout setting here. The plugin documentation mentions provisioning, but the example does not show the exact format for specifying the timeout.
I tried including the timeout in two different places in my datasource provisioning settings. I restarted Grafana between each attempt.
and
After performing the change, I get the same error as before. The stats show a total request time of 1 minute, which makes me believe the configuration I've applied has not changed anything.
What you expected to happen: I expected that the README file for this repo described the possible configuration values and showed an example of how to provision them.
I expected one of the two provisioning configurations I applied to have changed the HTTP timeout used towards Logscale. I expected this to allow my dashboard to load without timeout errors.
How to reproduce it (as minimally and precisely as possible):
Total request time
is1.00 mins
.Screenshots
Anything else we need to know?: I looked through the code to find references to the correct name and placement of the the timeout property. I came across the plugin settings struct, where the timeout property is commented. This makes me wonder whether the plugin uses the value at all.
Environment: