client_python icon indicating copy to clipboard operation
client_python copied to clipboard

Prometheus instrumentation library for Python applications

Results 133 client_python issues
Sort by recently updated
recently updated
newest added

Related to https://github.com/prometheus/client_python/issues/154. I'm working with Fast API + Gunicorn, and I have several cases where I need to display a gauge metric, but only the "last" value received. Not...

Is there any way to time how long it takes to execute a generator function in python with `Histogram.time`? Right now, it only seems to measure the time to get...

things like `MetricWrapperBase._labelnames` are immutable, but are passed in as parameters when instantiating MetricWrapperBase objects. These would be useful if they were exposed? ```python @property def labelnames(self) -> Tuple[str, ...]:...

Hi! Using the example of my PR, I would like to show that the library needs to improve its cyclomatic complexity. I tested with the utility [radon](https://pypi.org/project/radon/) My changes ````...

I recently wanted to collect custom application metrics from a rather large Celery app. I tried several approaches with varying degrees of awkwardness, until finally settling on having a "sidecar"...

Closes https://github.com/prometheus/client_python/issues/982

When running the test suite with `-Wdefault`, I get multiple reports of resource leaks, plus one of the tests is flaky and sometimes fails because of `ResourceWarning` being emitted where...

**Changes Made:** This merge request introduces a new feature in the multiprocess mode that allows metrics deletion. The new functionality is encapsulated in a method called `delete_value` within the `MmapedDict`...

At present (v0.19.0 and previously) the `prometheus_client.registry.Registry` class is secondary in terms of API control flow to the `prometheus_client.metrics.MetricWrapperBase` and subclasses in that a caller says `prometheus_client.Counter()` and doing so...