The handler working with aCrawler and Prometheus
Project description
acrawler-prometheus
The handler works with aCrawler and Prometheus.
Export statistics for:
- Concurrent requests
- Task (Requests, Items) counts
- Queue status
Installation
$ pip install acrawler_prometheus
Usage
Add Handler:
class MyCrawler(Crawler):
middleware_config = {
"acrawler_prometheus.PromExporter": 100,
}
config = {
"PROMETHEUS_INTERVAL": 5
}
Avaliable Config:
PROMETHEUS_ADDR = "localhost"
PROMETHEUS_PORT = 8000
PROMETHEUS_INTERVAL = 1 # exporting interval, in second
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file acrawler_prometheus-0.0.4.tar.gz
.
File metadata
- Download URL: acrawler_prometheus-0.0.4.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d2b2a1d360dc371b1a57dee344152cc5622225af040590ce3886e1f3b1f8d0c |
|
MD5 | 07fa14f0ca444af1a8117e650516c7ef |
|
BLAKE2b-256 | 1ffbf8238c158ce3beb181c570be0355096dc8eeb112eacdf68cd0ff477465d0 |