Skip to main content

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:

import flask
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()

Or, if you desire to export your metrics within Flask, just use:

import flask
from flask_satella_metrics.prometheus_exporter import PrometheusExporter
app = flask.Flask(__name__)
app.register_blueprint(PrometheusExporter({'service_name': 'my_service'}))

Release files for flask-satella-metrics 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for flask-satella-metrics 1.6.0
File Interpreter ABI Platform
flask_satella_metrics-1.6.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / flask_satella_metrics-1.6.0-py2.py3-none-any.whl

Download URL flask_satella_metrics-1.6.0-py2.py3-none-any.whl
Size 4.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c1b30c92c5c2860f08adc11a8711d5c083c36b569dacb1148cb55b711f142898
BLAKE2b-256 checksum
How to use checksums
20e2067c7d81017c16195b40d2b26e69a7ea19a2f1e7c1a81fff9c622c44d01e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.11.9

Release history Release notifications | RSS feed

This release

1.6.0 This release

1 release file

1.5.1

1 release file

1.5

2 release files

1.4

2 release files

1.3

2 release files

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page