When I run the python script below on a raspberry pi using the pi user, it works perfectly.
#!/usr/bin/python3 from prometheus_client import start_http_server, S