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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e76402aa91d2322b52c92cb56de4bd27b384578a358a250feec5269774e1cdac |
|
MD5 | c6f4055f7588a486b2512f4876f32386 |
|
BLAKE2b-256 | b8e0f15130973f6a2e9c11ede89d4c50bb5fc2140576f7ad8ca8b575ad309132 |
Hashes for routemaster_prometheus-1.4.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5aed84bc64d443b570b38ed1c5a9ea74f3da0b39f617f81589b8b3a783ee486 |
|
MD5 | 71c09bbbd636feb5fd5ed00e9e9cf933 |
|
BLAKE2b-256 | 9e8e9f8823256d6465226ad178f7c0ff513fe201e607e336fe27d7b69668443e |