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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9cf8a4e7519cc9a14df8b0310a8a7a1ff2fa0c4e97b552a4e01e66a1b4d3c1a |
|
MD5 | 3668a69063e1930ffdd6d88a9db548e5 |
|
BLAKE2b-256 | d39d89537861b069fc42e507e050d90347551947f230650f2efe9edd1071fe4f |
Hashes for routemaster_prometheus-1.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc243eb78be4c4b40a1328cbbf7e57e3ea19c39ed489b7a657d10c82711dbbb |
|
MD5 | 6b6918044d6f5d5f05848ce6244a7a1a |
|
BLAKE2b-256 | ec448b71cf00d3e3b07ae92c06f326d0abd53a0e0359b9cbea388450ed3862ad |