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
InfluxDB: Use grafana timeout value for flux queries #81252
Conversation
pkg/tsdb/influxdb/influxdb.go
Outdated
im instancemgmt.InstanceManager | ||
features featuremgmt.FeatureToggles | ||
} | ||
|
||
func ProvideService(httpClient httpclient.Provider, features featuremgmt.FeatureToggles) *Service { | ||
func ProvideService(cfg *setting.Cfg, httpClient httpclient.Provider, features featuremgmt.FeatureToggles) *Service { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't use this as a dependency. Rather I think you should read the timeout value from HTTP options retrieved in newInstanceSettings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated it badee42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* use grafana timeout for flux queries * get timeout from settings * fix test
Thanks for the fix! 👍 |
* use grafana timeout for flux queries * get timeout from settings * fix test
What is this feature?
Use grafana timeout configuration for flux query calls
Which issue(s) does this PR fix?:
Fixes #29457
Special notes for your reviewer:
Please check that: