Flask-Meter
Healthchecks for Flask Apps
Flask-Meter is an add-on to the Flask web framework. Flask-Meter adds a monitoring endpoint for consuming application metrics. It can be really simple to set up. Flask-Meter modifies the Flask application to provide an enpoint at /_health where you will get a JSON response of the system’s uptime, current git revision.
You can also add in extra checks by passing in a list of checks to the constructor.
Installing
Install and update using pip:
pip install -U Flask-Meter
Flask Configuration
from Flask import Flask
from flask_meter import FlaskMeter
app = Flask(__name__)
FlaskMeter(app)
Or if you can use the init_app function:
from Flask import Flask
from flask_meter import FlaskMeter
app = Flask(__name__)
flask_meter = FlaskMeter()
flask_meter.init_app(app)
Free software: MIT license
Documentation: https://flask-meter.readthedocs.io.
Features
Current Git Commit
Current Version
Accepts custom functions
Configuration
Config Key |
Description |
Type |
Default |
|---|---|---|---|
FLASK_METER_ENABLE |
Enable/Disable Flask-Meter |
bool |
True |
FLASK_METER_GIT |
Enable/Disable Git Stats |
bool |
True |
FLASK_METER_VERSION |
Enable/Disable Version Stats |
bool |
True |
Sponsorship
Put your logo here! Become a sponsor and support this project!
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Metadata
Release files for Flask-Meter 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Meter-1.1.2.tar.gz | 18.0 kB | Without provenance | Details for Flask-Meter-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_Meter-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for Flask_Meter-1.1.2-py3-none-any.whl |
Total release size: 23.9 kB
Release files / Flask-Meter-1.1.2.tar.gz
| Download URL | Flask-Meter-1.1.2.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99dcf6902fc26995ab12305931795d57cdabf5b93a70ca08dee23cf3c99523c7
|
|
BLAKE2b-256 checksum How to use checksums |
8f43ee8f97d21f3008931c1fb7b081b1a2d1c0c182aebff999361107febcc959
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / Flask_Meter-1.1.2-py3-none-any.whl
| Download URL | Flask_Meter-1.1.2-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e8378866d9c3ff84df4c38021dcbb4f17491ee435732474fed0379d9c7b67c1
|
|
BLAKE2b-256 checksum How to use checksums |
e13f6bee1cf3f15166f7ba9ffb5236d2a0de6da13ceaa0d2a5d382f1c9935533
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for Flask-Meter 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.