pyramid_scales
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:
- Issues:
- Source code:
Change log for pyramid_scales
1.1 (2015-02-03)
Make Python3 compatible (patch by Hynek Schlawack)
1.0 (2013-11-06)
initial release
Metadata
Release files for pyramid_scales 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyramid_scales-1.1.zip | 10.5 kB | Details |
Release files / pyramid_scales-1.1.zip
| Download URL | pyramid_scales-1.1.zip |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37cb186185852b8e4b5abb39bdbbda9edaedf4766b48848b8dc54ff218c2cffe
|
|
BLAKE2b-256 checksum How to use checksums |
6740954b5565b6c826d70168b7088d519195982c79ff3699ae4079eb1a2cd0a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |