Skip to main content

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.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

routemaster_prometheus-1.3.13.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

routemaster_prometheus-1.3.13-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file routemaster_prometheus-1.3.13.tar.gz.

File metadata

  • Download URL: routemaster_prometheus-1.3.13.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.3.13.tar.gz
Algorithm Hash digest
SHA256 dc436577d218fe61471852148740b98638ca71dc9e0aa8f307a0fd5ee48750f2
MD5 a4edd7c698720a170f1006d34178127d
BLAKE2b-256 acabe3eb5fe6da1b6ec6142cbf0e1ef9386aa61c9810a8cb2984a0ad6795feb1

See more details on using hashes here.

Provenance

File details

Details for the file routemaster_prometheus-1.3.13-py3-none-any.whl.

File metadata

  • Download URL: routemaster_prometheus-1.3.13-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.3

File hashes

Hashes for routemaster_prometheus-1.3.13-py3-none-any.whl
Algorithm Hash digest
SHA256 f4347490b79fab49bba498fb63e0a3a28f3cfc2e5d78f3dbe57922886e5efc0c
MD5 03d4ebf61791ac5a21d33bdf0edf6327
BLAKE2b-256 3a0232b2bfff7c79f7e356b00282f2eaa62c91d916646acb293dfba9ab2c3a04

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page