Skip to main content

No project description provided

Project description

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.

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

audisto_exporter-1.0.1.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file audisto_exporter-1.0.1.tar.gz.

File metadata

  • Download URL: audisto_exporter-1.0.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for audisto_exporter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c65a1702d08ca872ed1344f75942ef5eee374aa1f40b5ce6283e47491bb0c19e
MD5 8cfb89cadc64c1ef03c1bdce12bec214
BLAKE2b-256 fa8a1bff08dbfc5f0a6b4da794befcdd7640f786cd75ea850cd11568ff97373f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page