Skip to main content

This package exports Audisto web crawler report data as Prometheus metrics.

Usage

Start HTTP service

Start the HTTP server like this:

$ AUDISTO_USERNAME=APIUSER AUDISTO_PASSWORD=APISECRET audisto_exporter --host=127.0.0.1 --port=9307

Pass --ttl=SECONDS to cache API results for the given time or -1 to disable (default is 600). Prometheus considers metrics stale after 300s, so that’s the highest scrape_interval one should use. However it’s usually unnecessary to hit the API that often, since the information does not change that rapidly.

Configure Prometheus

scrape_configs:
  - job_name: 'audisto'
    scrape_interval: 300s
    static_configs:
      - targets: ['localhost:9307']

We export two metrics, firstly a gauge http_requests_total with labels {service="http://www.zeit.de/index",code="200"}. Status codes 601/602/603 are used for indexable/robots noindex/canonical. Status codes 700/701/702/703 are used for duplicate title/description/body/similar urls.

Secondly we export a histogram response_time, with labels {service="http://www.zeit.de/index"} and buckets as determined by Audisto.

Additionally, a audisto_scrape_duration_seconds gauge is exported.

CHANGES

1.0.1 (2019-11-20)

  • Import code=410 as well.

1.0.0 (2019-11-20)

  • First release.

Release files for audisto-exporter 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for audisto-exporter 1.0.1
File Size Uploaded
audisto_exporter-1.0.1.tar.gz 5.5 kB Details

Release files / audisto_exporter-1.0.1.tar.gz

Download URL audisto_exporter-1.0.1.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c65a1702d08ca872ed1344f75942ef5eee374aa1f40b5ce6283e47491bb0c19e
BLAKE2b-256 checksum
How to use checksums
fa8a1bff08dbfc5f0a6b4da794befcdd7640f786cd75ea850cd11568ff97373f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release 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