Mimicking `prometheus_client` code also doesn't work for me.
```python
def make_wsgi_custom():
def health(environ, start_response):
status = "200 OK"
output = "Hello World!\n"
response_headers = [
("Content-type", "text/plain"),
("Content-Length", str(len(output))),
]
start_response(status, response_headers)
return [output]
return health
app.wsgi_app = DispatcherMiddleware(
app.wsgi_app, {"/metrics": make_wsgi_app(), "/health": make_wsgi_custom()}
)
```
I think I need to use [Multiprocess Mode (Gunicorn)](
https://github.com/prometheus/client_python#multiprocess-mode-gunicorn). But it comes with many limitations.
Maybe I will put the health info (buld number) inside the `/matrics` too