A flask plugin to keep stats about your application
Project description
===========
Flask-Stats
===========
.. module:: flask.ext.stats
This flask extension automatically provides paging timing and http status code
statistics to statsd.
It will send page timings to `<APP_NAME>.<BLUEPRINT>.<FUNCTION>`, and status
codes to `<APP_NAME>.<BLUEPRINT>.<FUNCTION>.http_XXX`, where XXX is the status
code, i.e 403.
Installation
------------
Install by installing it from the Python Package Index.
.. code-block:: console
$ pip install Flask-Stats
Configuration
-------------
Flask-Stats uses the following configuration values.
.. tabularcolumns:: |p{6.5cm}|p{8.5cm}|
=============================== ========================================================
`STATS_HOSTNAME` Specifies the host to send statsd values to. Defaults to
localhost.
`STATS_PORT` Specified the port to send statsd values to. Defaults to
8125.
`STATS_BASE_KEY` The base key to send the stats to. Defaults to the
application name.
=============================== ========================================================
Changelog
---------
Todo
----
- Unit tests
API Documentation
-----------------
.. automodule:: flask_stats
:members:
:undoc-members:
:show-inheritance:
Flask-Stats
===========
.. module:: flask.ext.stats
This flask extension automatically provides paging timing and http status code
statistics to statsd.
It will send page timings to `<APP_NAME>.<BLUEPRINT>.<FUNCTION>`, and status
codes to `<APP_NAME>.<BLUEPRINT>.<FUNCTION>.http_XXX`, where XXX is the status
code, i.e 403.
Installation
------------
Install by installing it from the Python Package Index.
.. code-block:: console
$ pip install Flask-Stats
Configuration
-------------
Flask-Stats uses the following configuration values.
.. tabularcolumns:: |p{6.5cm}|p{8.5cm}|
=============================== ========================================================
`STATS_HOSTNAME` Specifies the host to send statsd values to. Defaults to
localhost.
`STATS_PORT` Specified the port to send statsd values to. Defaults to
8125.
`STATS_BASE_KEY` The base key to send the stats to. Defaults to the
application name.
=============================== ========================================================
Changelog
---------
Todo
----
- Unit tests
API Documentation
-----------------
.. automodule:: flask_stats
:members:
:undoc-members:
:show-inheritance:
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
Flask-Stats-0.1.0.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for Flask_Stats-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d3086f72706b501b40e89bcdd6dd2eeaa70714f9e6f7f3f4b3be83aab5f1f7b |
|
MD5 | 8105664a968ca2a830223b50b87ec7fd |
|
BLAKE2b-256 | 0676f7b352c4656848523cb4c6bd8e5d6838d841458743fc2173f02d13558784 |