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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3166a680ab4a0e28cf6ec8b307e4274ae3afbc1e333f5c60f0829fe162edb6dc |
|
MD5 | a880709069ff09a86409e9289e0ddd2c |
|
BLAKE2b-256 | b7d11df7c60910a1a1e3d8ce7fb22d0713b8141ba2f4051a548723638bbcbe0a |
Hashes for routemaster_prometheus-1.4.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6283f500383fc26cc3d3c9c65e65259d4c8cf452c55aa3f0aa77cfe9ae324af |
|
MD5 | 0579c56d7e78cfc060e6247803d24947 |
|
BLAKE2b-256 | ceab07a7efc304cd5d6d92192808fcd4970434143996fac3e03edfe5a51fe970 |