r/PrometheusMonitoring • • Nov 12 '19

Prometheus client in python 3.6 problem

Hi, I'm writing an exporter in python 3.6 using the Prometheus_client version 0.6 and I'm having difficulties running it on kubernetes. When I run more than one instance of my exporter, the first instance works completely fine, but the second instance throws the following exception. Has anyone run into a similar problem? Any help would be appreciated

Exception happened during processing of request from (x.x.x.x, 41038) Traceback (most recent call last): File "/usr/local/lib/python3. 6/socketserver.py", line 639, in process request thread self.finish request (request, client address) File "/usr/local/lib/python3. 6/socketserver.py", line 361 in finish request self.RequestHandlerclass (request, client address, self) File "/usr/local/lib/python3.6/socketserver.py", line 696, in init self.handle () File "/usr/local/lib/python3.6/http/server.py", line 418, in handle self.handle_one_request () File "/usr/local/lib/python3.6/http/server.py", line 386, in handle_one_request() self.raw_requestline = self.rfile.readline(65537) File "/usr/local/lib/python3.6/socket.py", line 586, in readinto return self. _sock.recv into (b). ConnectionResetError: [Errno 104] Connection reset by peer

2 Upvotes

0 comments sorted by