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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d2d5274133f6ae72773e8fd0330d842d972a319fea3cc0a7e8c4d8d3bbd4a9 |
|
MD5 | b285b4566db8bfa065878bf541cda71f |
|
BLAKE2b-256 | 2272eb40ca34c9198675d9c70087bbf41c510ef7eecd7399e709ae93b0a6e8d5 |
Hashes for routemaster_prometheus-1.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fada15a67a27cc627606aaed737004700a4efce0cb774bdfb0f612eab6f8d3b2 |
|
MD5 | 28db65e5815fa59ff9f4f4aef5d324e3 |
|
BLAKE2b-256 | cd8206f7a07ac6c1805a47336ffb7c350b6e35073bc684dc162be85b6caf727a |