Flask Extension for using Pyctuator to enable Spring Boot Admin (SBA) to monitor the application, see https://github.com/SolarEdgeTech/pyctuator
Project description
Flask Pyctuator Extension
A Flask extension that uses Pyctuator to enable Spring Boot Admin (SBA) to monitor health, configuration, log-file and resource-usage of a Flask application.
Please see Pyctuator for the complete documentation and note that the some features such as monitoring memory/disk usage require instlaling of additional modules.
Quick Start
- Install Flask and the flask-pyctuator extension using your favorite python package manager
- Start a local SBA (Spring Boot Admin) server using Dockers:
docker run --rm -p 8080:8080 --add-host=host.docker.internal:host-gateway michayaak/spring-boot-admin:2.2.3-1
- Open SBA's main page, http://localhost:8080, in your browser
- Run the following Flask application:
from flask import Flask from flask_pyctuator.flask_pyctuator import FlaskPyctuator app = Flask("Flask App with Pyctuator") @app.route("/") def hello(): return "Hello World!" FlaskPyctuator( app, pyctuator_endpoint_url="http://host.docker.internal:5000/pyctuator", ) app.run(debug=False, port=5000, host="0.0.0.0")
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
flask-pyctuator-0.1.0.tar.gz
(7.9 kB
view hashes)
Built Distribution
Close
Hashes for flask_pyctuator-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 110ef2bb5248193b9210ba6cd61bfe34c1970a3b2d113fe7f48444344a405bd4 |
|
MD5 | d45067eb0a4deec163e571955c662840 |
|
BLAKE2b-256 | aebea1f7fb0947fe4b4a9a7db18df40fdc3c5dafbdc606900c0c392971a724ba |