Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Kartstig/flask-meter
A simple app health meter for Flask
https://github.com/Kartstig/flask-meter
Last synced: 8 days ago
JSON representation
A simple app health meter for Flask
- Host: GitHub
- URL: https://github.com/Kartstig/flask-meter
- Owner: Kartstig
- License: mit
- Created: 2017-01-19T05:03:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T19:49:39.000Z (about 1 year ago)
- Last Synced: 2024-09-26T11:22:22.593Z (3 months ago)
- Language: Python
- Size: 98.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- Funding: .github/FUNDING.yml
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
- jimsghstars - Kartstig/flask-meter - A simple app health meter for Flask (Python)
README
===============================
Flask-Meter
===============================Healthchecks for Flask_ Apps
.. _Flask: https://github.com/pallets/flask/
.. image:: https://img.shields.io/pypi/v/Flask-Meter.svg
:target: https://pypi.python.org/pypi/Flask-Meter.. image:: https://tc.spin-flip.com/app/rest/builds/buildType:id:FlaskMeter_TestPython310/statusIcon.svg
:target: https://tc.spin-flip.com/project/FlaskMeter?mode=trends.. image:: https://readthedocs.org/projects/flask-meter/badge/?version=latest
:target: https://flask-meter.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status.. image:: https://codecov.io/gh/Kartstig/flask-meter/branch/master/graph/badge.svg?token=NsmixA2iCH
:target: https://codecov.io/gh/Kartstig/flask-meter.. image:: https://img.shields.io/pypi/dm/Flask-Meter
:alt: PyPI - DownloadsFlask-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
-------------------.. code-block:: python
from Flask import Flask
from flask_meter import FlaskMeterapp = Flask(__name__)
FlaskMeter(app)
Or if you can use the `init_app` function:
.. code-block:: python
from Flask import Flask
from flask_meter import FlaskMeterapp = 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 functionsConfiguration
-------------+---------------------+------------------------------+------+---------+
| 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!
.. _Become a sponsor: https://github.com/sponsors/Kartstig
Credits
---------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage