You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
When I start a prometheus server, then stop it, then re-start it, server can not restart because port was not released.
I am following steps indicated by documentation
Usecase:
I need to be able to start and stop prometheus server to run a sequence of tests for an external application
Each test needs to start a prometheus server, and then stop it
Explanation of the proposed fix:
Function start_http_server returns a tuple containing 2 elements. First element is a child of WSGIServer class from wsgiref.simple_server module. We can use the standard method server_close() that closes socket connections.
Note: server.shutdown() is still required even when using sever.server_close()
The text was updated successfully, but these errors were encountered:
Summary:
When I start a prometheus server, then stop it, then re-start it, server can not restart because port was not released.
I am following steps indicated by documentation
Usecase:
I need to be able to start and stop prometheus server to run a sequence of tests for an external application
Each test needs to start a prometheus server, and then stop it
Steps to reproduce:
Error
Versions:
Proposed fixed:
Edit documentation
Does proposed fix work ?
Yes. One can start, stop, restart prometheus server
Explanation of the proposed fix:
Function
start_http_server
returns a tuple containing 2 elements. First element is a child ofWSGIServer
class fromwsgiref.simple_server
module. We can use the standard methodserver_close()
that closes socket connections.Note:
server.shutdown()
is still required even when usingsever.server_close()
The text was updated successfully, but these errors were encountered: