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.3.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccee36fb47f07b09e3eae281f20ea522706c8353ee4baa3e2f1dfea45d634db0 |
|
MD5 | 1b3295829a19367e05d13ef10be5d77a |
|
BLAKE2b-256 | 167f1bb49ade40cb58cb769bded7a2ba74d211a611b33e2bd6b6f893f5f2a3c9 |
Hashes for routemaster_prometheus-1.3.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 087102ccc70ddb58a39e610ddb9fa1bf5d59fabb163a8b57e1165cd6310c7a1e |
|
MD5 | b2d171203f9f2401e09c49999ff7cc8c |
|
BLAKE2b-256 | 40290dc0fe5d7939539ed4be0abe0df2366cb30e828caabde06aa78de74b24d6 |