New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiprocess application sometimes throwing UnicodeDecodeError in prometheus_client/mmap_dict.py #868
Comments
Hmm, I haven't seen this one before, is this something that can be reproduced? Some version and environment information may also be helpful. |
Hi @csmarchbanks, we are using prometheus-client 0.15.0 in docker environment Traceback (most recent call last): |
I have configured my application like below If I do not add "values.ValueClass = values.MultiProcessValue(os.getppid)" facing slowness in metrics endpoint |
Hi
I have multiprocess enabled application with flask exporter, 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?
The text was updated successfully, but these errors were encountered: