Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

acrawler_prometheus-0.0.4.tar.gz (2.2 kB view details)

Uploaded Source

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

Hashes for acrawler_prometheus-0.0.4.tar.gz
Algorithm Hash digest
SHA256 0d2b2a1d360dc371b1a57dee344152cc5622225af040590ce3886e1f3b1f8d0c
MD5 07fa14f0ca444af1a8117e650516c7ef
BLAKE2b-256 1ffbf8238c158ce3beb181c570be0355096dc8eeb112eacdf68cd0ff477465d0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page