aiohttp-openmetrics-0.0.9
توضیحات
OpenMetrics provider for aiohttp
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | aiohttp-openmetrics-0.0.9 |
| نام | aiohttp-openmetrics |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jelmer Vernooij |
| ایمیل نویسنده | jelmer@jelmer.uk |
| آدرس صفحه اصلی | https://github.com/jelmer/aiohttp-openmetrics/ |
| آدرس اینترنتی | https://pypi.org/project/aiohttp-openmetrics/ |
| مجوز | Apache v2 or later |
aiohttp-openmetrics
===================
This project contains a simple middleware and /metrics route endpoint for
aiohttp that allow easy implementation of the
`openmetrics <https://www.openmetrics.org/>`_ protocol.
At the moment, this package is a thin wrapper around the ``prometheus_client``
package.
Example usage
-------------
.. code-block:: python
from aiohttp import web
from aiohttp_openmetrics import metrics, metrics_middleware
app = web.Application()
app.middlewares.append(metrics_middlware)
app.router.add_get('/metrics', metrics)
web.run_app(app)
License
-------
This package is licensed under the Apache v2 or later license.
نیازمندی
| مقدار | نام |
|---|---|
| - | aiohttp |
| - | prometheus-client |
نحوه نصب
نصب پکیج whl aiohttp-openmetrics-0.0.9:
pip install aiohttp-openmetrics-0.0.9.whl
نصب پکیج tar.gz aiohttp-openmetrics-0.0.9:
pip install aiohttp-openmetrics-0.0.9.tar.gz