Repo with an example Flask app which uses my statsd middleware.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates
.gitignore
LICENSE
Makefile
README.md
app.py
requirements.txt
statsdmiddleware.py

README.md

statsdmiddleware

Repo with an example Flask app which uses my statsd middleware.

setup

$ make bootstrap

This will setup the virtualenv and requirements (Flask and dogstatsd-python).

running

$ make run

This will run the built-in flask webserver in debug mode. Afterwards you can open http://127.0.0.1:5000/test to trigger a rendering of the test view.

seeing metrics

$ make tcpdump

This runs tcpdump so you can see the UDP packets containing the statsd metrics the middleware is emitting. For a proper experience I recommend getting setup with Datadog and passing your metrics there ;-)