rycus86 / prometheus_flask_exporter

Prometheus exporter for Flask applications
https://pypi.python.org/pypi/prometheus-flask-exporter
MIT License
646 stars 161 forks source link

Multiprocess application sometimes throwing UnicodeDecodeError #146

Open Velan987 opened 1 year ago

Velan987 commented 1 year ago

Hi I have multiprocess enabled application, sometimes it is throwing below error File "usr/local/lib/python3.8/site-packages/prometheus_client/mmap_dict.py", line 44, in _read_all_values yield encoded_key.decode('utf-8'), value, pos UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 18: invalid continuation byte.

After this error my application is crashed. Can someone please help me on this?

rycus86 commented 1 year ago

As this is coming from the prometheus_client package, I'd ask there first, if you haven't done so already.