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")
See the complete example and project file in the example folder.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flask-pyctuator-0.1.1.tar.gz.
File metadata
- Download URL: flask-pyctuator-0.1.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.7.11 Linux/5.4.0-1061-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
667adccaefeb53e03807fce90bddd8619711383510101111e7b9d0f972b73561
|
|
| MD5 |
b0462577698a0759b53bf1456a99a340
|
|
| BLAKE2b-256 |
d9e5bfbd158a373fab29bded5f770970f824d1ee745777bd632eb8d5ecdf18f5
|
File details
Details for the file flask_pyctuator-0.1.1-py3-none-any.whl.
File metadata
- Download URL: flask_pyctuator-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.7.11 Linux/5.4.0-1061-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fd8dfcc15ffef32ec7b3f1c49e57975ca63db9396079835e04b55f3251039d3
|
|
| MD5 |
0d1d14c6297a8d37a52567db5718ea44
|
|
| BLAKE2b-256 |
90c55985a62c616e6763f75b726017b101e7027be5aa3bd45284c0a505a7dab2
|