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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: routemaster_prometheus-1.3.23.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.3.23.tar.gz
Algorithm Hash digest
SHA256 7beda8b3f9474cb55b6d0ccfd30797c430def44ad98121a7691357f8ea7302df
MD5 dd0180fddf00ee4e5b4b5d803c97d53a
BLAKE2b-256 f3eb9899f158271f64cbda92694de01d5ac4935b3ddb5ba6c0e125d35a0dd053

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: routemaster_prometheus-1.3.23-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.3.23-py3-none-any.whl
Algorithm Hash digest
SHA256 f4b30d8aed7420f1373bb5ceb3a60e11938f4f83f1fce9b88ed7250ed51ad994
MD5 c4575b74e93de3fd9c5bde8a11d8ebac
BLAKE2b-256 0c72b9f7bbeaaf8c807f255a92a01bc71385e39b5d846bd4db69014066891541

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