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.20.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f95292da278f8a283241c1d4a078c2f76d97a17c237c41a13c31730d1d93ef |
|
MD5 | 41cc34c6bc237dc26184bb1c1c5d460f |
|
BLAKE2b-256 | dac9a01baac3ac7c139a78d761cc63df7ee8920402b438940bb7268f131833f6 |
Hashes for routemaster_prometheus-1.3.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5455815aaea041126d839c00c452ac31c6f95a11359c1374c4732a537385e6 |
|
MD5 | c65f630aa62169527241f89940f71812 |
|
BLAKE2b-256 | 28c16339b36f7ff82e93ba9ac4e65d98c50c335ab6266636cae15aa8f6b8a8c9 |