alphagov/licence-finder — pull request #4 by govuk-ci-skyscape (2012-08-10 16:08:45+00:00)
Title: add statsd instrumentation to licence-finder

Talked this over briefly with Kush this afternoon.

Adding incredibly simple statsd instrumentation to licence-finder. Every time someone hits /sectors we record a start, and every time someone hits /licences we record a finish.

The metrics are then made available in the graphite dashboard -- go to eg http://monitoring.preview.alphagov.co.uk/dashboard and find the metric in the folders at the left-hand side of the screen.

There are obviously some issues with this particular example -- eg /sectors is likely to be cached at the CDN so we may well miss some starts. This is just intended to demonstrate how to add instrumentation to an app.