Prometheus: Fix passing query timeout to upstream queries (#95104)

* remove queryTimeout from constructor

* use queryTimeout for range and instant queries

* remove comment

* remove default query timeout

* fix linting
This commit is contained in:
ismail simsek
2024-10-23 16:16:00 +02:00
committed by GitHub
parent 0872eb2791
commit 78a00d09cd
5 changed files with 28 additions and 18 deletions
+3 -2
View File
@@ -41,8 +41,9 @@ func New(
}
return &Resource{
log: plog,
promClient: client.NewClient(httpClient, httpMethod, settings.URL),
log: plog,
// we don't use queryTimeout for resource calls
promClient: client.NewClient(httpClient, httpMethod, settings.URL, ""),
}, nil
}