Metadata-Version: 2.1
Name: Flask-Graphite
Version: 0.6.0
Summary: Push useful metrics for each request without effort!
Home-page: https://github.com/numberly/flask-graphite
Author: numberly
Author-email: ramnes@1000mercis.com
License: MIT
Platform: UNKNOWN
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: Flask (>=0.12)
Requires-Dist: graphitesend (>=0.10.0)

.. image:: https://raw.githubusercontent.com/numberly/flask-graphite/master/artwork/flask-graphite.png

|

.. image:: https://img.shields.io/pypi/v/flask-graphite.svg
   :target: https://pypi.python.org/pypi/flask-graphite
.. image:: https://img.shields.io/github/license/numberly/flask-graphite.svg
   :target: https://github.com/numberly/flask-graphite/blob/master/LICENSE
.. image:: https://img.shields.io/travis/numberly/flask-graphite.svg
   :target: https://travis-ci.org/numberly/flask-graphite
.. image:: https://img.shields.io/coveralls/numberly/flask-graphite.svg
   :target: https://coveralls.io/github/numberly/flask-graphite
.. image:: https://readthedocs.org/projects/flask-graphite/badge/?version=latest
   :target: https://flask-graphite.readthedocs.io/en/latest/?badge=latest

|

Flask-Graphite grants you the power to push useful metrics for each request
without effort

Documentation: https://flask-graphite.readthedocs.io.


Features
========

* Send metrics to graphite for each request
* Metric name based on the route of the request
* Average processing time, number of requests, and stats about status code for
  each route


Example
=======

Here is a minimal template to use Flask-Graphite in a project.

.. code-block:: python

    from flask import Flask
    from flask_graphite import FlaskGraphite

    app = Flask(__name__)
    FlaskGraphite(app)

Such a simple snippet, combined with a Grafana dashboard, would give you
something like this:

.. image:: artwork/grafana_dashboard.png
   :alt: An example dashboard powered with Flask-Graphite


