8000 Simplify ASGI documentation in README · prometheus/client_python@050bb5c · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 050bb5c

Browse files
committed
Simplify ASGI documentation in README
Signed-off-by: Emil Madsen <sovende@gmail.com>
1 parent 4f1d836 commit 050bb5c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,6 @@ start_wsgi_server(8000)
311311
To use Prometheus with [ASGI](http://asgi.readthedocs.org/en/latest/), there is
312312
`make_asgi_app` which creates an ASGI application.
313313

314-
Save the snippet below in a `myapp.py` file
315-
316314
```python
317315
from prometheus_client import make_asgi_app
318316

@@ -321,17 +319,6 @@ app = make_asgi_app()
321319
Such an application can be useful when integrating Prometheus metrics with ASGI
322320
apps.
323321

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-
335322
#### Flask
336323

337324
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

Comments
 (0)
0