Prometheus metrics reporting for Routemaster.
Project description
### routemaster-prometheus
Usage, in your Routemaster configuration file:
```yaml
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.
Usage, in your Routemaster configuration file:
```yaml
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
Close
Hashes for routemaster_prometheus-1.3.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84958c2bd55b195428d945cb9ec072f00533948114920cd604e83862b4ecf1da |
|
MD5 | 5e4aab21406a453c87ca0ad8f33cee8a |
|
BLAKE2b-256 | 8f6ea9edbf49eaa16db4ef5b7eb0e8524c263fd2f3cb762fc2df79df0d090cc3 |
Close
Hashes for routemaster_prometheus-1.3.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5991d54bd9c5e7e3e66e0a805089f9b35d2765a7f9d58e45c28951806d56344e |
|
MD5 | 3311da76e4a34166276d0f41b7b9290d |
|
BLAKE2b-256 | ed4ebd2b5257cf359e8ccbc48a15731a0d2dc5290de52a3709b8a6d4b2b5e72f |