We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd93abe commit 5b0a476Copy full SHA for 5b0a476
README.md
@@ -334,7 +334,7 @@ from prometheus_client import make_wsgi_app
334
app = Flask(__name__)
335
336
# Add prometheus wsgi middleware to route /metrics requests
337
-app_dispatch = DispatcherMiddleware(app, {
+app.wsgi_app = DispatcherMiddleware(app.wsgi_app, {
338
'/metrics': make_wsgi_app()
339
})
340
```
@@ -344,7 +344,7 @@ Run the example web application like this
344
```bash
345
# Install uwsgi if you do not have it
346
pip install uwsgi
347
-uwsgi --http 127.0.0.1:8000 --wsgi-file myapp.py --callable app_dispatch
+uwsgi --http 127.0.0.1:8000 --wsgi-file myapp.py --callable app
348
349
350
Visit http://localhost:8000/metrics to see the metrics
0 commit comments