prometheus-api-client-python icon indicating copy to clipboard operation
prometheus-api-client-python copied to clipboard

A python wrapper for the prometheus http api

Results 26 prometheus-api-client-python issues
Sort by recently updated
recently updated
newest added

**Is your feature request related to a problem? Please describe.** Amazon Managed Service for Prometheus (APS) cannot be queried. This is because APS uses SigV4 but prometheus-api-client-python doesn't support that...

I found that I was unable to use [query functions](https://prometheus.io/docs/prometheus/latest/querying/functions/#rate) on [get_metric_range](https://github.com/4n4nd/prometheus-api-client-python/blob/a3e2cde7419ba97224f7374641b90c77bec15b9b/prometheus_api_client/prometheus_connect.py#L174) because of how the chunk is implemented. Is there another way to use these functions or does this...

**Describe the solution you'd like** I want to get the value of the computed expression through Prometheus' API。 pc.get_metric_range_data(metric_name=train_data[0].metric_name ....) Can I make metric_name = (1- sum(increase(node_cpu_seconds_total{mode='idle',instance='172.29.3.13:9101'}[2m])) by (instance)/sum(increase(node_cpu_seconds_total{instance='172.29.3.13:9101'}[2m])) by...

I'm using this library for a project of mine where I need to gather 48h worth of timestamp data. While the library gets the job done, since all requests are...

**Describe the bug** The `PrometheusApiClientException` class naming violates pep8 N818 naming convention. So this is resulting in pre-commit-check failing on every PR, even if the PR is not related to...

Fix [FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.] Upstream issue: https://github.com/pandas-dev/pandas/issues/35407

Hi, if you were to put your disable_ssl as false, where else would I be required to configure my cert path etc? Thanks!

# Summary I am adding the ability to configure request timeouts. # Details - Add a global request timeout object to be used for all requests (https://github.com/4n4nd/prometheus-api-client-python/commit/a0dcfcf8448ed5a0815f1fd15e5fd6d975bf0f71) - Add request...

**Is your feature request related to a problem? Please describe.** We see requests getting stuck forever which blocks our app. The fix is to set a request timeout, which is...