Skip to content

cyberdelia/flask-statsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask-StatsD

This is a simple Flask extension that allows to access statsd in your Flask application.

Installation

To install it, simply:

pip install Flask-StatsD

Usage

You only need to import and initialize your app

from flask import Flask
from flask.ext.statsd import StatsD

app = Flask(__name__)
app.config['STATSD_HOST'] = 'statsd.local'
statsd = StatsD(app)