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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49e4b49b6181ee864cc46beeedce446cf49ec51c8e4bb16dd30543a1529cc766 |
|
MD5 | c02f1b43539c7fcd8f3ef71645340fa2 |
|
BLAKE2b-256 | 712faf04950e88e4f9215ad318b6b04614cea62eee9792b01b6ef42055814aee |
Close
Hashes for routemaster_prometheus-1.3.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46987699f4e5dd44bc60a883fad2777cb5b929b118ed31fc1acbfaac21fc3b32 |
|
MD5 | 28ce1131f83f3bef2b9f75dd9915b028 |
|
BLAKE2b-256 | fc152c90266b88950617012dbf11aae8f0557e6b766f1a7e3193b6368cd3362d |