apimon-0.0.3
توضیحات
monitor apis metrics
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | apimon-0.0.3 |
| نام | apimon |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | yangwb |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/apimon/ |
| مجوز | - |
An exporter about prometheus, written in Python, mainly provides monitoring of api data functions, as follows:
1. Request quantity
2. Request duration per second
3. The number being requested
4. The last request took time
For details, please see: https://github.com/prometheus/client_python
Usage example:
"""
from apimon import ApiMonitor
apimonitor = ApiMonitor(app_name="your app name")
apimonitor.setup_metrics(app) # your app object instance
"""
نیازمندی
| مقدار | نام |
|---|---|
| >=1.0.2 | flask |
| >=0.5.0 | prometheus-client |
نحوه نصب
نصب پکیج whl apimon-0.0.3:
pip install apimon-0.0.3.whl
نصب پکیج tar.gz apimon-0.0.3:
pip install apimon-0.0.3.tar.gz