Skip to main content

A library to metric your Flask app using Satella

Project description

flask-satella-metrics

Build Status Test Coverage Code Climate Issue Count PyPI PyPI version PyPI

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

flask-satella-metrics-1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

flask_satella_metrics-1.0-py2.py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page