client_python
client_python copied to clipboard
Prometheus instrumentation library for Python applications
In the write_to_textfile function, the code to run the collector registry is in the temp file creation block: https://github.com/prometheus/client_python/blob/master/prometheus_client/exposition.py#L202-L203 In my case, I had an error in my collector code...
ATM `Summary.time()` can't decorate class method. It would be nice to have this feature.
I accidentally sent malformed data to a push gateway and got back a 500 Internal Server Error. The body of the response had information about the malformed data but all...
Addresses #527. There's a test setting GaugeHistogramMetricFamily.gsum_value = None, so I've preserved that behaviour, by not appending and crashing if gsum_value is None. That meant that this test case "([('spam',...
In Twisted resources are designed to be subclassed. Now that MetricsResource is hidden behind a lambda, it can no longer be subclassed. Can you provide a easy way to subclass...
start_hpp_server should reuse the port if it is already being used, most likely due to an earlier instance going down and we are restarting ``` File "lib64/python3.4/site-packages/prometheus_client/exposition.py", line 103, in...
Hi there, an experience report and improvement suggestion. I have a [pretty simple exporter](https://github.com/mhansen/bom_exporter/blob/master/bom_exporter.py) which queries a backend URL for JSON, grabs the JSON, stuffs it into prometheus metric families,...
Clarifying in the Multiprocess Mode instructions that gauge.set_function is also a custom collector. https://github.com/prometheus/client_python/issues/504
In Instrumenting section of documentation (https://github.com/prometheus/client_python#instrumenting) there is written: > Four types of metric are offered: Counter, Gauge, Summary and Histogram. Classes for exposing these metrics are then described and...
An unfortunate mistake of inattention.