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.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a17b480a466744b5f96f22f135334ce93293983920f2cc50b2073ad07234535 |
|
MD5 | 876bee8743669fbae2e75a2ce7b86fba |
|
BLAKE2b-256 | 2faa2a486aeeeeeddf747dfe6d7ce20e36f8301afc9900b097c75349e9e2f3f2 |
Hashes for routemaster_prometheus-1.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d324941d1756afd554ff9994e1708db98c0617f9e89b91adf9d32ee2e2cc2a7 |
|
MD5 | 38ddd82e88083006454fbe7d249de29b |
|
BLAKE2b-256 | c0b668dcc0c65a403477094a2cc324f58e711d8117805397caee5c9a58629262 |