Flask-Meter adds a healthcheck endpoint for Flask apps.
Project description
Healthchecks for Flask
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: .. code-block:: text
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
Accepts custom functions
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
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
Hashes for Flask_Meter-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d8fdf691366f89526ed5f0334015f457c2c5a26075d977102e18c9d8d13f88b |
|
MD5 | 88288379e0754744bea1cfc85f0782c7 |
|
BLAKE2b-256 | 3a2fb37b6ca0a4b075653f63a69963ca0531563ac3d664d640112b227480f751 |