Application Performance Monitoring Made Easy
Welcome to Knotty, the easiest way to tie down your application performance metrics!
NOTE: While all the basic functionality is here, Knotty is still in Alpha development. The project aims to have more libraries automatically tracked, as well as more export options. APIs and functionality are also apt to change with little to no warning.
Modern applications require close monitoring, and Knotty aims to provide everything you need out of the box. Importing the library will automatically register numerous metrics regarding the performance of the application and the system it is operating on, including hardware utilization, application logging rates, http request rates, and many more. Beyond the build in metrics, there is also an extremely powerful meters API that allows you to create whatever custom metrics you would like.
Once you have your meters defined, Knotty also provides a simple API for exporting your metrics to a number of commonly used metrics backends (Prometheus, InfluxDB, Graphite, etc).
Here's a simple example of how you can add a Prometheus endpoint to a Flask application:
from flask import Flask from knotty.exporters import PrometheusExporter app = Flask(__name__) PrometheusExporter(flask_app=app) @app.route('/hello', allowed_methods=['GET']) def hello() return 'Hello World' app.run()
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size knotty-0.4.0-py3.8.egg (35.1 kB)||File type Egg||Python version 3.8||Upload date||Hashes View|
|Filename, size knotty-0.4.0-py3-none-any.whl (15.4 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size knotty-0.4.0.tar.gz (14.0 kB)||File type Source||Python version None||Upload date||Hashes View|