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.5.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: routemaster_prometheus-1.4.5.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.2 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.4.5.tar.gz
Algorithm Hash digest
SHA256 e9cf8a4e7519cc9a14df8b0310a8a7a1ff2fa0c4e97b552a4e01e66a1b4d3c1a
MD5 3668a69063e1930ffdd6d88a9db548e5
BLAKE2b-256 d39d89537861b069fc42e507e050d90347551947f230650f2efe9edd1071fe4f

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: routemaster_prometheus-1.4.5-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.2 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ddc243eb78be4c4b40a1328cbbf7e57e3ea19c39ed489b7a657d10c82711dbbb
MD5 6b6918044d6f5d5f05848ce6244a7a1a
BLAKE2b-256 ec448b71cf00d3e3b07ae92c06f326d0abd53a0e0359b9cbea388450ed3862ad

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