numberly / flask-graphite

:chart_with_upwards_trend: Push useful metrics for each request without effort!

Home Page:https://flask-graphite.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


https://readthedocs.org/projects/flask-graphite/badge/?version=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.

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:

An example dashboard powered with Flask-Graphite

About

:chart_with_upwards_trend: Push useful metrics for each request without effort!

https://flask-graphite.readthedocs.io

License:MIT License


Languages

Language:Python 100.0%