client_python
client_python copied to clipboard
Prometheus instrumentation library for Python applications
When initialized without labels, it seems that the resulting metrics objects will lack some instance variables. Minimal example: ```python from prometheus_client import Gauge, generate_latest cc = Gauge("dummy_count", "POC") if __name__...
I started multiple processes in the production environment over time 'PROMETHEUS_ MULTIPROC_ ‘ There will be more and more files under dir. How can I establish cleaning rules and the...
I'm trying to debug why Prometheus isn't pulling metrics from my client. Is there some way I can get this library to log each incoming http request, including the IP...
Im using the `django_prometheus` library which is a wrapper for `prometheus_client` library for my Django app. I am not running Prometheus, (or the entire applcaition in a Docker container), which...
Hey, I've noticed that a prometheus Gauge or Counter object needs alot of memory. Is this a normal/expected behaviour? ``` import prometheus_client import objsize labels={} labels['test']='test' print("Memory Registry at Start:...
Hi, in the README it says to use BaseHTTPRequestHandler to write a custom metrics endpoint but doesn't elaborate at all on how it's used. Is there an example or guide...
When one PureStorage array controller is failed it reports None value for metric purefa_network_interface_performance. The function floatToGoString fails because it cannot handle None value. I added two lines in my...
This is essentially a duplicate of issue #701 The main problem for my use case is that it's impossible to separate multiple instances of collectors, even though it has a...
Hi, Looking at the [Content-Type header](https://github.com/prometheus/client_python/blob/30f83196ac1f1a1a2626da9d724d83955aff79b1/prometheus_client/openmetrics/exposition.py#L6) ```python CONTENT_TYPE_LATEST = 'application/openmetrics-text; version=0.0.1; charset=utf-8' ``` The `version=0.0.1` should be bumped. Looking at [the spec](https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#overall-structure): > The content type MUST be: application/openmetrics-text; version=1.0.0;...
Hello, When creating a Counter metric with client_python 0.4.0 - 0.16.0: ```python my_metric_count = Counter(name='my_metric_count', documentation='My helpful description', registry=MY_REGISTRY) ``` The metric will show in prometheus as `my_metric_count_total`. This is...