A flask plugin to keep stats about your application
Project description
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.
$ pip install Flask-Stats
Configuration
Flask-Stats uses the following configuration values.
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
1.0.0
No longer reports timing values for endpoints that don’t exist.
Todo
More functionality? What Would you like?
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
File details
Details for the file Flask-Stats-1.0.1.tar.gz
.
File metadata
- Download URL: Flask-Stats-1.0.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11992a980286c902fca5dc6e986b91290d7ec7786978a3d0162ab35b4d3ac68e |
|
MD5 | f7308438c37bbb6cdfe8f038505664a1 |
|
BLAKE2b-256 | 106673f1d5f48f3c6e04340a3d367d82f422797e2c9b6ae7b8aecd840ba16ff0 |
File details
Details for the file Flask_Stats-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: Flask_Stats-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60204d6eda71079c0ad9bc5cf26ecdf4dd4056202c311eb789beb9e439ff5b4c |
|
MD5 | a3d89e26df7e7468ffc76151abd3359b |
|
BLAKE2b-256 | 9daf9e9a9bcc8bc24da6e5962cd2e23e75788286318fd1f03ce03f32afce621f |