Script to report the number of errors in Sentry to Graphite. The result is displayed on the Sentry dashboard and on the 2nd line dashboard.
- The govuk-sentry-monitor jenkins job runs the script in the Rakefile every 15 minutes
- The script uses the Sentry API to fetch the stats per project for the last hour
- The script then send the total count per app for the last hour to the Statsd process as a "gauge"
- Statsd sends the metric over to Graphite, which means we can use it in Grafana