For what it's worth, I ended starting the web server via http.server, like
this:
class Handler(MetricsHandler):
def do_GET(self):
if self.path.endswith('/metrics'):
return super().do_GET()
self.send_response(200)
self.send_header('Content-type', 'text/plain')
self.end_headers()
self.wfile.write(b'OK')
REGISTRY.register(Collector())
http.server.HTTPServer(('', 8080), Handler).serve_forever()
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5b0da269-2128-4ade-8a15-767a0203ff66n%40googlegroups.com.