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.org/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.org/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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc4ea6b09e3674167dc459520c235be4baa2af27aeebd2d495a75d042e6d3be8 |
|
MD5 | fec345a666ca509847a2ad48d546d68a |
|
BLAKE2b-256 | de7da23f5537a07e423aafe11250699c4a690de602e7534ccc3ce9095dcc1270 |
Close
Hashes for routemaster_prometheus-1.3.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 174887063d672663c52b03f0978e8e687f7370373f12b6844796c9b49d61a576 |
|
MD5 | 35ba9222a4361bebeeec80e1b32e63ba |
|
BLAKE2b-256 | e3dc574cb1a2bd3d4aa24df4251e87b12d2b72af7722c8d0405822432f622f51 |