cthtuf / django-with-metrics

Middleware for sending request\response metrics to Graphite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

django-with-metrics

Middleware for sending request\response metrics to Graphite.

This is example how to send application metrics i.e. requests\response types to Graphite. You can just run it by docker-compose up and open:

Info about request and response will be send in Graphite and you can check it by:

I recommend to use UDP protocol for sending metrics, cz TCP adds some freezes in middleware. Just modify code in middleware (you'll see it), but keep in mind that it needs some tweaks in carbon.conf, like ENABLE_UDP_LISTENER = True. Sending metrics by UDP is not presented in this example.

About

Middleware for sending request\response metrics to Graphite


Languages

Language:Python 93.8%Language:Dockerfile 6.2%