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
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc731943c9554003768b213576b8c46f1957ce7039d2984f4cbe7799d3bf7695 |
|
MD5 | c6c942560fc0d9ac4b2bb21c55b705d8 |
|
BLAKE2b-256 | dae14a3761d64ab68a061b8b91dc2ed279bdd1a4978a84d01fcfa7bb4e1fafcd |
Hashes for routemaster_prometheus-1.4.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8294408a66d1f94cc691fa818aafceeb3b93f503dcfd4658e64c9fd587cd52c7 |
|
MD5 | 155de16934fc210c505694e81e85b2a2 |
|
BLAKE2b-256 | 72de64d2dd36da10d04bb1a61a65efe25b5fada85939f7eefc59c25ea03a5eb5 |