Automatically monitor the evolving performance of Flask/Python web services.
Project description
Flask Monitoring Dashboard
A dashboard for automatic monitoring of Flask (http://flask.pocoo.org/) web-services.
Key Features
The Flask Monitoring Dashboard is an extension for Flask applications that offers four main functionalities with little effort from the Flask developer:
Monitor the performance and utilization: The Dashboard allows you to see which endpoints process a lot of requests and how fast. Additionally, it provides information about the evolving performance of an endpoint throughout different versions if you’re using git.
Profile requests and endpoints: The execution path of every request is tracked and stored into the database. This allows you to gain insight over which functions in your code take the most time to execute. Since all requests for an endpoint are also merged together, the Dashboard provides an overview of which functions are used in which endpoint.
Collect extra information about outliers: Outliers are requests that take much longer to process than regular requests. The Dashboard automatically detects that a request is an outlier and stores extra information about it (stack trace, request values, Request headers, Request environment).
Collect additional information about your Flask-application: Suppose you have an User-table and you want to know how many users are registered on your Flask-application. Then, you can run the following query: ‘SELECT Count(*) FROM USERS;’. But this is just annoying to do regularly. Therefore, you can configure this in the Flask-MonitoringDashboard, which will provide you this information per day (or other time interval).
The dashboard is automatically added to your existing Flask application. You can view the results by default using the default endpoint (this can be configured to another route):
For more advanced documentation, take a look at the information on this site
How to use
Installation
To install from source, download the source code, then run this:
python setup.py install
Or install with pip:
pip install flask_monitoringdashboard
Setup
Adding the extension to your Flask app is simple:
from flask import Flask import flask_monitoringdashboard as dashboard
app = Flask(__name__) dashboard.bind(app)
Live Demo
To view a live deployment of the Flask-MonitoringDashboard, check this site
Use the credentials u:admin, p:admin to log in.
Feedback
In order to improve our Flask-MonitoringDashboard, we would like to hear from you! Therefore, we made a questionnaire with a few questions. Filling in this form takes less than 3 minutes. You can find the form here.
Alternatively, feel free to write to our email-address.
Documentation
For more advanced documentation, see this site If you run into trouble migrating from version 1.X.X to version 2.0.0, this site will help you solve this too. The migration from 2.X.X to 3.0.0 should be easier.
License
This project is licensed under the MIT License - see the LICENSE file for details.
v1.1.2
Thank to https://github.com/flask-dashboard/Flask-MonitoringDashboard
Changed
Customize UI
Update sync response code
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
File details
Details for the file Flask-Monitoring-1.1.2.tar.gz
.
File metadata
- Download URL: Flask-Monitoring-1.1.2.tar.gz
- Upload date:
- Size: 220.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/2.7.17
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a4f7fc6f5087caefdc05c79fd5dddc0e3a1deb280af5279925b228a2fd05696 |
|
MD5 | 7ee471da5c7f463a60fbb74152810a98 |
|
BLAKE2b-256 | 496350e5204860fc65a7791d03f7638ebc17c48713141c0697a96a572a10ea28 |