You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @GiulioGx, thanks for opening the issue! Line 346 seems to be a comment, is this referring to line 355 instead?
Anyway, I believe params are the parameters being passed for the query to the Prometheus server (see this line for an example), so the current implementation seems correct to me. I still tried replicating your suggestion as follows:
At line 346 of prometheus_connect.py we have:
response = self._session.get(
"{0}/api/v1/query".format(self.url),
params={**{"query": query}, **params},
verify=self.ssl_verification,
headers=self.headers,
)
the params dict, ultimately used to pass params (for instance timeouts) to the requests get method is not correctly passed.
It should be modified to:
response = self._session.get(
"{0}/api/v1/query".format(self.url),
params={**{"query": query}},
**params,
verify=self.ssl_verification,
headers=self.headers,
)
The text was updated successfully, but these errors were encountered: