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.org/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for routemaster_prometheus-1.4.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e86bcce6460b62a66764970f800c75a7f9311c8d43e0751110c578cb8f10f9f7 |
|
MD5 | 5ce645572ec01772912688c7e8557c26 |
|
BLAKE2b-256 | a680fe0f35e735e10aaae1ac35f96ff38dd4c321c7b3449d86ba240697b5f7e8 |
Hashes for routemaster_prometheus-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be17a273678decdb365c33663fab65b22b27c9449c1ec0de707815d510d79619 |
|
MD5 | ae7ac131d7e6307e3490a97468d67b7b |
|
BLAKE2b-256 | 2ebf0ca781c0e01185516dc215cc0ffaabd6419ceec43aab6fd7545e7ca893f3 |