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.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0c88217abe10303477676d81dee09074b04ee16a243e386385e1352e66cb11a |
|
MD5 | 2987e55f8247dfba56273bc3d2b4f1ff |
|
BLAKE2b-256 | 1ee4a31657ad7299499677313865ffaea74543473f49471ad52e49c00f1a5bfc |
Close
Hashes for routemaster_prometheus-1.3.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f5f02e2f39db248ba5eba447b4cf0f5a630b8e35f93a1e72f9fee1ed944e09 |
|
MD5 | 2d4ad431776f251d804a5d6d6211c4ca |
|
BLAKE2b-256 | 08f6d004b591f172e695ea2b72e2b7a32664b9b07e2399269266efc1b5abfc5d |