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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7beda8b3f9474cb55b6d0ccfd30797c430def44ad98121a7691357f8ea7302df |
|
MD5 | dd0180fddf00ee4e5b4b5d803c97d53a |
|
BLAKE2b-256 | f3eb9899f158271f64cbda92694de01d5ac4935b3ddb5ba6c0e125d35a0dd053 |
Hashes for routemaster_prometheus-1.3.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4b30d8aed7420f1373bb5ceb3a60e11938f4f83f1fce9b88ed7250ed51ad994 |
|
MD5 | c4575b74e93de3fd9c5bde8a11d8ebac |
|
BLAKE2b-256 | 0c72b9f7bbeaaf8c807f255a92a01bc71385e39b5d846bd4db69014066891541 |