Skip to main content

Viewing scales metrics from Pyramid

Project description

pyramid_scales

https://travis-ci.org/wosc/pyramid_scales.png

The excellent scales library to collect in-process metrics (see Coda Hale’s CodeConf talk “Metrics everywhere” among many others for reasons why you might want use it) comes with a flask-based HTTP server that allows viewing the collected measurements and dumping them as JSON. But if you already are in a web application using pyramid, there’s no real need to spin up yet another thread, open another port etc. to do this.

Instead, you can simply include pyramid_scales like so:

import pyramid.config
config = pyramid.config.Configurator()
# rest of your configuration goes here
config.include('pyramid_scales')

This registeres a view below the URL /scales/ where you can view your application’s metrics. If you need more control, register the pyramid_scales.scales_stats view yourself in whichever way you need.

This package is compatible with Python version 2.7 (scales itself does not support Python3 yet, so there’s no point here).

Developing pyramid_scales

Author:

Wolfgang Schnerring <wosc@wosc.de>

PyPI page:

https://pypi-hypernode.com/pypi/pyramid_scales

Issues:

report via e-mail

Source code:

https://github.com/wosc/pyramid_scales

Change log for pyramid_scales

1.1.1 (2018-11-07)

  • Make current-setuptools compatible

1.1 (2015-02-03)

  • Make Python3 compatible (patch by Hynek Schlawack)

1.0 (2013-11-06)

initial release

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

pyramid_scales-1.1.1.tar.gz (4.8 kB view hashes)

Uploaded Source

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