client_python
client_python copied to clipboard
Prometheus instrumentation library for Python applications
Hi, I am running the test suite on some obscure architectures and observed a failure on alpha, with one test: ``` ========================================================================= FAILURES ========================================================================= ______________________________________________________ TestGauge.test_time_block_decorator_with_label ______________________________________________________ self = def...
It would be neat - and more idiomatic - if the Enum metric took an Enum object as its `states` parameter.
Currently, when using a multiproc environment, initializing metrics registers them as collectors. This means that in `registry.py:96` they report their metrics, even though they were already reported in the mmapped...
When we use time to decorate a partial function, I get an cannot decorate partial function error. Should we use timer to support partial functions @hynek @csmarchbanks ? I thought...
Super simple hook that checks for lifespan and immediately responds type.complete, essentially making startup/shutdown lifespan events no-ops for the prometheus ASGI app. Fixes #855 ``` from hypercorn.middleware import DispatcherMiddleware from...
Spin off from https://github.com/prometheus/client_python/pull/967 and https://github.com/prometheus/client_python/issues/847 # Background The Prometheus exposition format (https://github.com/prometheus/docs/blob/main/content/docs/instrumenting/exposition_formats.md#comments-help-text-and-type-information) allows exporters to specify an optional timestamp for each sample. If this is unset, the collector uses...
How can I run the http server using the prometheus_client on IPv6?
This could be a very powerful toolset if it were dockerized and available for use on docker-hub (and resultingly in Kubernetes). Highly suggest moving forward to implement this for a...
I'm using the default way of starting the server with start_http_server(). I noticed that the server responds with HTTP/1.0 to HTTP/1.1 requests. Is there a flag I need to set...
The ``CollectorRegistry`` uses ``theading.Lock`` for mutexing purposes. It does not have a defined order of unlocks. In our use-case sometimes three or more actions happen almost simultaneously and sometime this...