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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc436577d218fe61471852148740b98638ca71dc9e0aa8f307a0fd5ee48750f2 |
|
MD5 | a4edd7c698720a170f1006d34178127d |
|
BLAKE2b-256 | acabe3eb5fe6da1b6ec6142cbf0e1ef9386aa61c9810a8cb2984a0ad6795feb1 |
Close
Hashes for routemaster_prometheus-1.3.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4347490b79fab49bba498fb63e0a3a28f3cfc2e5d78f3dbe57922886e5efc0c |
|
MD5 | 03d4ebf61791ac5a21d33bdf0edf6327 |
|
BLAKE2b-256 | 3a0232b2bfff7c79f7e356b00282f2eaa62c91d916646acb293dfba9ab2c3a04 |