acrawler-prometheus-0.0.4
توضیحات
The handler working with aCrawler and Prometheus
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | acrawler-prometheus-0.0.4 |
| نام | acrawler-prometheus |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | wooddance |
| ایمیل نویسنده | zireael.me@gmail.com |
| آدرس صفحه اصلی | https://github.com/wooddance/acrawler-prometheus |
| آدرس اینترنتی | https://pypi.org/project/acrawler-prometheus/ |
| مجوز | - |
# acrawler-prometheus
The handler works with [aCrawler](https://github.com/wooddance/aCrawler) and [Prometheus](http://prometheus.io/).
Export statistics for:
- Concurrent requests
- Task (Requests, Items) counts
- Queue status
## Installation
```bash
$ pip install acrawler_prometheus
```
## Usage
Add Handler:
```python
class MyCrawler(Crawler):
middleware_config = {
"acrawler_prometheus.PromExporter": 100,
}
config = {
"PROMETHEUS_INTERVAL": 5
}
```
Avaliable Config:
```python
PROMETHEUS_ADDR = "localhost"
PROMETHEUS_PORT = 8000
PROMETHEUS_INTERVAL = 1 # exporting interval, in second
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl acrawler-prometheus-0.0.4:
pip install acrawler-prometheus-0.0.4.whl
نصب پکیج tar.gz acrawler-prometheus-0.0.4:
pip install acrawler-prometheus-0.0.4.tar.gz