Skip to main content

Push useful metrics for each request without effort!

Project description

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

https://img.shields.io/pypi/v/flask-graphite.svg https://img.shields.io/github/license/numberly/flask-graphite.svg https://img.shields.io/travis/numberly/flask-graphite.svg https://img.shields.io/coveralls/numberly/flask-graphite.svg 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Flask-Graphite, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size Flask_Graphite-0.6.0-py2.py3-none-any.whl (6.2 kB) File type Wheel Python version 3.6 Upload date Hashes View hashes
Filename, size Flask-Graphite-0.6.0.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page