Skip to main content

Prometheus metrics reporting for Routemaster.

Project description

Usage, in your Routemaster configuration file:

plugins:
  logging:
    - class: routemaster_prometheus.logger:PrometheusLogger
      kwargs:
        path: /metrics

This package is based on the official Python Promeutheus bindings in ``prometheus_client` <https://pypi-hypernode.com/project/prometheus_client/>`_. In order for that package to operate in a multithreaded program such as Routemaster, the environment variable prometheus_multiproc_dir must be set to a writeable directory for temporary files. It does not need to be backed up as nothing is persisted between application launches.

This is already done for you in the thread/routemaster Docker image provided, but when deploying in a custom way you may wish to change this directory.

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

routemaster_prometheus-1.4.6.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

routemaster_prometheus-1.4.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file routemaster_prometheus-1.4.6.tar.gz.

File metadata

  • Download URL: routemaster_prometheus-1.4.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.4.6.tar.gz
Algorithm Hash digest
SHA256 3166a680ab4a0e28cf6ec8b307e4274ae3afbc1e333f5c60f0829fe162edb6dc
MD5 a880709069ff09a86409e9289e0ddd2c
BLAKE2b-256 b7d11df7c60910a1a1e3d8ce7fb22d0713b8141ba2f4051a548723638bbcbe0a

See more details on using hashes here.

Provenance

File details

Details for the file routemaster_prometheus-1.4.6-py3-none-any.whl.

File metadata

  • Download URL: routemaster_prometheus-1.4.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b6283f500383fc26cc3d3c9c65e65259d4c8cf452c55aa3f0aa77cfe9ae324af
MD5 0579c56d7e78cfc060e6247803d24947
BLAKE2b-256 ceab07a7efc304cd5d6d92192808fcd4970434143996fac3e03edfe5a51fe970

See more details on using hashes here.

Provenance

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