client_python
client_python copied to clipboard
Prometheus instrumentation library for Python applications
Hey. It would be nice if there was something like a `write_to_stdout()` function, or if `write_to_textfile()` would somehow allow writing to stdout. For debugging that would seem to be much...
Hey. The `MetricWrapperBase` derived classes (`Counter`, `Gauge`, etc) all have `namespace` and `subsystem` in their constructors and automatically combine that into a final name. Wouln't it make sense to have...
Hey. A simple: ``` prometheus_client.write_to_textfile("", registry=registry) ``` which causes an exception: ``` Traceback (most recent call last): File "/home/calestyo/prj/prometheus-smart-array-collector/src/./smart-array.py", line 1185, in sys.exit(main()) ^^^^^^ File "/home/calestyo/prj/prometheus-smart-array-collector/src/./smart-array.py", line 1176, in main...
Hey. Right now, when one feeds a `dict` into Info.info()` that contains values that are not `str` one get's an exception, like: ``` AttributeError: ("'float' object has no attribute 'replace'",...
## To reproduce: 1. Create a file `bar.py` with contents ``` from prometheus_client import Gauge my_gauge = Gauge('my_gauge', 'my description') def add(x, y): return x + y ``` 2. Create...
Fix AttributeError: Remove unnecessary 'decode' for Python 3 compatibility
Spaces in a group key value, come back as "+": reproduction: (assumes docker interface at 172.17.0.1) 1. Start PGW: `docker run -it --rm -p 9091:9091 prom/pushgateway:v1.6.2` 2. Push metrics and...
Because converting to bytes anyway happened at the end of function, have sense to return str instead bytes or have options to avoid extra transformation. (many API expected str)
Sometimes i get this error: ``` Traceback (most recent call last): File "/opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/opt/homebrew/Cellar/[email protected]/3.10.15/Frameworks/Python.framework/Versions/3.10/lib/python3.10/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/opt/homebrew/lib/python3.10/site-packages/django_q/cluster.py", line 165,...