client_python icon indicating copy to clipboard operation
client_python copied to clipboard

Prometheus instrumentation library for Python applications

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

`prometheus-client==0.15.0` The method `collect` on `prometheus_client.multiprocess.MultiProcessCollector` reads all .db files, leading to memory issues, as it reads SQLite databases. ```bash Traceback (most recent call last): File "", line 1, in...

Hi I have multiprocess enabled application with flask exporter, sometimes it is throwing below error File "usr/local/lib/python3.8/site-packages/prometheus_client/mmap_dict.py", line 44, in _read_all_values yield encoded_key.decode('utf-8'), value, pos UnicodeDecodeError: 'utf-8' codec can't decode...

Multiprocess mode's [collect()](https://github.com/prometheus/client_python/blob/470b2d3849fe069a6d390f0818b91b75c9fde79e/prometheus_client/multiprocess.py#L147) reads the registry files and aggregates metrics that have been written to `prometheus_multiproc_dir`. This doesn't work with `gauge.set_function()` which does not record its value. The provided function...

Hi All Rather than expose my metrics at the top level I would like to expose them in a metrics subfolder similar to what node-exporter does. I don't quite seem...

Having a 3rd-party application which can not expose any metrics by itself I wrote my own exporter which takes data from the app and exposes metrics. The next idea was...

Hi, recently I was thinking about possible improvement for `MetricWrapperBase` and friends `labels` method. Very common use case is described even in Counter's docstring: ```python from prometheus_client import Counter c...

client_python version: testing on 0.15.0 but the offending code exists in the master branch as well. I'm trying to use the prometheus ASGI handler with Hypercorns DispatcherMiddleware. It sends lifecycle...

While using `django-prometheus` I found a situation where adding a metric to the registry caused a read from cache. I had cache metrics enabled, which attempted to add cache metrics...

After collecting data with Prometheus, it can be pushed to a remote Prometheus server. However, direct pushing fails, returning the following error: ``` File "/usr/local/lib/python3.10/dist-packages/prometheus_client/exposition.py", line 529, in push_to_gateway _use_gateway('PUT',...

This PR adds an OM parser for native histograms, as a first step towards the implementation of the following proposal https://github.com/prometheus/proposals/pull/32 . The next steps (as far as this repo...