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
File details
Details for the file flask-satella-metrics-1.0.tar.gz
.
File metadata
- Download URL: flask-satella-metrics-1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e40e13e0e9f283734aefdafb0d2e604b4381f1195c4f7f881fc2dbcbf465ad0 |
|
MD5 | d2bb1aef7ef9a067969e034c6be49795 |
|
BLAKE2b-256 | b63e778f85cc8ec10f718dc71a2a7feee2f7d2e92523ed7ae37df3e265289941 |
File details
Details for the file flask_satella_metrics-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: flask_satella_metrics-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.1 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eaff16f6ca3721ee06576bcb98f12a1746a8d561a7157f640d505484cb99ba1 |
|
MD5 | a9da27885c62c5cff326c5e5d51cdd50 |
|
BLAKE2b-256 | 99faa58f45d5f38e596b00815a2245b7f0d9870202d6706c7a92e291cf48571f |