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.24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31b2c3d3336a2cce0f74f68923f9466c3876d208bc195cd4bcccf5d8ee2f1a32 |
|
MD5 | 01014150976b1a31ec1092b9ec96c19b |
|
BLAKE2b-256 | 9ce76adefad2bca54a98522351990b94013edf8260ca3412e76570242cca29ac |
Hashes for routemaster_prometheus-1.3.24-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc5a63f26500f98f817aa8f3a97eb45918bb99fb82c2af110baaf7274c90585a |
|
MD5 | 6ff66d1865112cd02b5a59b185916152 |
|
BLAKE2b-256 | 8df333dfbae1ed3cd01d888ebb012533749c3eb2779c2754c9b409392be0699a |