A library to metric your Flask app using Satella
Project description
flask-satella-metrics
flask-satella-metrics is an application to seamlessly measure your Flask application using Satella's metrics.
Example use:
from flask_satella_metrics import SatellaMetricsMiddleware
app = flask.Flask(__name__)
SatellaMetricsMiddleware(app)
And to launch a Prometheus exporter use the following snippet:
from satella.instrumentation.metrics.exporters import PrometheusHTTPExporterThread
phet = PrometheusHTTPExporterThread('0.0.0.0', 8080, {'service_name': 'my_service'})
phet.start()
Project details
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
Close
Hashes for flask-satella-metrics-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e40e13e0e9f283734aefdafb0d2e604b4381f1195c4f7f881fc2dbcbf465ad0 |
|
MD5 | d2bb1aef7ef9a067969e034c6be49795 |
|
BLAKE2b-256 | b63e778f85cc8ec10f718dc71a2a7feee2f7d2e92523ed7ae37df3e265289941 |
Close
Hashes for flask_satella_metrics-1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eaff16f6ca3721ee06576bcb98f12a1746a8d561a7157f640d505484cb99ba1 |
|
MD5 | a9da27885c62c5cff326c5e5d51cdd50 |
|
BLAKE2b-256 | 99faa58f45d5f38e596b00815a2245b7f0d9870202d6706c7a92e291cf48571f |