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.22.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1a94bfcd9a0f30a8d6a7f37b9690a53f2b6f0e16eee057e62f914f07f72ede5 |
|
MD5 | 6e9b4f20cd734be9b6ef08215ab811c6 |
|
BLAKE2b-256 | b1f107c07490b24801a4296d0b2003493591cec3dbc956fa78052a0913cb83d0 |
Hashes for routemaster_prometheus-1.3.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7766593ee5ba170a48a9591e13a5088a95e33cae958ee617428c2c74a740df06 |
|
MD5 | c2177b67c64cef3c7849e04b45c65d5c |
|
BLAKE2b-256 | 50f5f343e81ccf0bf35289bcfe467048242d7d2214b2ce6e6e76a5daf3eedf14 |