prometheus-api-client-python
prometheus-api-client-python copied to clipboard
A python wrapper for the prometheus http api
Allow closing the connection/session
**Is your feature request related to a problem? Please describe.** We can open a client, but we cannot close the session. We have to work around it providing our own...
Is httmock a runtime dependency or only required for tests?
Is httmock a runtime dependency or only required for tests? https://github.com/4n4nd/prometheus-api-client-python/blob/49362b07cb3bec835a8211d81becd5ed205ace18/requirements.txt#L6 vs. https://github.com/4n4nd/prometheus-api-client-python/blob/master/setup.py#L40
add pool_size setting
In the case of multithreaded use, it could be useful to be able to adjust the max_poolsize Added pool_size option in PrometeusConnect which sets a max_poolsize on the HTTPAdapter request...
Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.0.1 to 10.2.0. Release notes Sourced from pillow's releases. 10.2.0 https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html Changes Add keep_rgb option when saving JPEG to prevent conversion of RGB colorspace #7553 [@bgilbert] Trim...
Documentation Broken: `get_metric_aggregation` and `MetricRangeDataFrame`
The formatting of the documentation for the function [`get_metric_aggregation`](https://prometheus-api-client-python.readthedocs.io/en/master/source/prometheus_api_client.html#prometheus_api_client.prometheus_connect.PrometheusConnect.get_metric_aggregation) appears to be broken as ilustrated below:  The description for the parameter `query` contains a link, which I suspect is...
**Describe the bug** I am trying to package this for openSUSE, but many tests are failing. The build is running in a build environment without internet connectivity. All of the...
Handling of NaN values in metric aggregations
**Describe the bug** Not really sure if a bug or a design decision but I could not find this case covered in the tests. When using numpy to calculate the...
issue252 add controls to subplot
As per #252, coded and tested. Note that this controls the `subplots()` call and not the `plot_date()` call.
request params not correctly passed to request.get in PrometheusConnect.custom_query
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...
Ways to import `PrometheusConnect` without also importing **huge** pandas and matplotlib
**Is your feature request related to a problem? Please describe.** I found this simple import ```python from prometheus_api_client import PrometheusConnect ``` not only import `PrometheusConnect` itself, but also pandas and...