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

Why is the restriction on name in class MetricWrapperBase to comply with the METRIC-NAME-RE rule? If I replicate init by inheriting the MetricWrapperBase class, there may be an inconsistency in...

This change addresses issue #1018 (currently, any HTTP method is handled by returning success and metrics data, which causes network scanners to report issues). Note, this needs careful review w.r.t.:...

> https://prometheus.github.io/client_python/ this is like a getting start hello world example is there like a real API ref for the classes etc..

help wanted
question

The following piece of code from the [metrics.py](https://github.com/prometheus/client_python/blob/master/prometheus_client/metrics.py#L201-L210) ``` with self._lock: if labelvalues not in self._metrics: self._metrics[labelvalues] = self.__class__( self._name, documentation=self._documentation, labelnames=self._labelnames, unit=self._unit, _labelvalues=labelvalues, **self._kwargs ) ``` passes the `self._name`...

bug

combine the PRs into one - https://github.com/prometheus/client_python/pull/1028 - https://github.com/prometheus/client_python/pull/1029 - https://github.com/prometheus/client_python/pull/1030 - https://github.com/prometheus/client_python/pull/1031

Refactor label parser to make it more readable and and faster

The [documentation](https://prometheus.github.io/client_python/exporting/http/fastapi-gunicorn/) gives an example application which mounts the ASGI app to `/metrics` in a FastAPI app ```python from fastapi import FastAPI from prometheus_client import make_asgi_app # Create app app...

I tried this with versions: 0.19.0 and 0.20.0, both seem to have this bug. I have a script prom_example.py: ```python from prometheus_client import Histogram Example = Histogram("example", "Example", "lol") ```...

Hi, is there a reason that the Histogram metric doesn't hold a `ValueClass` for the `_count` so they can be exposed in multiprocess mode? It would be really useful for...

I bump into some test failures with python 3.12, alpine linux edge: ``` ======================================= test session starts ======================================== platform linux -- Python 3.12.2, pytest-8.1.1, pluggy-1.4.0 rootdir: /home/ncopa/aports/community/py3-prometheus-client/src/prometheus_client-0.20.0 collected 309 items...