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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c5cb0b200eb66a33e3002e2f15ff0fad62a33f72baaaed8458cb371daeb407 |
|
MD5 | 5b81d8ec207852e12754ad99ac60ac0a |
|
BLAKE2b-256 | 4d2d9c4d8e4bdfc49ba8c97ee4073d31120d3a35d2a56d90750047582a2096cf |
Hashes for routemaster_prometheus-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a69828f33a80e74aa473ae635a4f56636a27d79a0e018add27cffaa6b123f30 |
|
MD5 | ecc51ef031800b9dc2a1d7ded650c3c1 |
|
BLAKE2b-256 | 09aceecc0c68c5138894ed36bf2e1e86d88c5f6b30799a49099c0d4e04af15e5 |