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.
Install and update using pip:
pip install -U Flask-Meter
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.
- Current Git Commit
- Current Version
- Accepts custom functions
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 |
Put your logo here! Become a sponsor and support this project!
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.