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.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fad2f06f8290afa24299cee0b34a0d7b59b26380097649bcd7d012e95eb14e1 |
|
MD5 | dcffa07d38e436ba476cad869d3625d1 |
|
BLAKE2b-256 | ac7dc4f509d5c3cacc9ede95fd8386ea88c7073bd1ce7e7b0af35a24353c6f0c |
Hashes for routemaster_prometheus-1.3.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76514a731b01c75536d5240bb11c3204578a5eb5c0da3fe45bb51a54a896a638 |
|
MD5 | eaaae8492f7a2846459a23cda2d66d7a |
|
BLAKE2b-256 | 52b8a400aa719bdab9d82427336c03b3203555a0e4f19aec2b57209e5abb36b9 |