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.
Release files for routemaster-prometheus 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| routemaster_prometheus-1.5.0.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| routemaster_prometheus-1.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / routemaster_prometheus-1.5.0.tar.gz
| Download URL | routemaster_prometheus-1.5.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a17b480a466744b5f96f22f135334ce93293983920f2cc50b2073ad07234535
|
|
BLAKE2b-256 checksum How to use checksums |
2faa2a486aeeeeeddf747dfe6d7ce20e36f8301afc9900b097c75349e9e2f3f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / routemaster_prometheus-1.5.0-py3-none-any.whl
| Download URL | routemaster_prometheus-1.5.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d324941d1756afd554ff9994e1708db98c0617f9e89b91adf9d32ee2e2cc2a7
|
|
BLAKE2b-256 checksum How to use checksums |
c0b668dcc0c65a403477094a2cc324f58e711d8117805397caee5c9a58629262
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|