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.org/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
File details
Details for the file routemaster_prometheus-1.5.0.tar.gz
.
File metadata
- Download URL: routemaster_prometheus-1.5.0.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a17b480a466744b5f96f22f135334ce93293983920f2cc50b2073ad07234535 |
|
MD5 | 876bee8743669fbae2e75a2ce7b86fba |
|
BLAKE2b-256 | 2faa2a486aeeeeeddf747dfe6d7ce20e36f8301afc9900b097c75349e9e2f3f2 |
File details
Details for the file routemaster_prometheus-1.5.0-py3-none-any.whl
.
File metadata
- Download URL: routemaster_prometheus-1.5.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d324941d1756afd554ff9994e1708db98c0617f9e89b91adf9d32ee2e2cc2a7 |
|
MD5 | 38ddd82e88083006454fbe7d249de29b |
|
BLAKE2b-256 | c0b668dcc0c65a403477094a2cc324f58e711d8117805397caee5c9a58629262 |