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
Copy file name to clipboardExpand all lines: README.md
-13Lines changed: 0 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -311,8 +311,6 @@ start_wsgi_server(8000)
311
311
To use Prometheus with [ASGI](http://asgi.readthedocs.org/en/latest/), there is
312
312
`make_asgi_app` which creates an ASGI application.
313
313
314
-
Save the snippet below in a `myapp.py` file
315
-
316
314
```python
317
315
from prometheus_client import make_asgi_app
318
316
@@ -321,17 +319,6 @@ app = make_asgi_app()
321
319
Such an application can be useful when integrating Prometheus metrics with ASGI
322
320
apps.
323
321
324
-
The app can be used to serve the metrics through an ASGI implementation, such
325
-
as [daphne](https://github.com/django/daphne) or
326
-
[uvicorn](https://www.uvicorn.org/).
327
-
```bash
328
-
# Install daphne if you do not have it
329
-
pip install daphne
330
-
daphne myapp:app
331
-
```
332
-
333
-
Visit http://localhost:8000/ to see the metrics
334
-
335
322
#### Flask
336
323
337
324
To use Prometheus with [Flask](http://flask.pocoo.org/) we need to serve metrics through a Prometheus WSGI application. This can be achieved using [Flask's application dispatching](http://flask.pocoo.org/docs/latest/patterns/appdispatch/). Below is a working example.
0 commit comments