mozilla-services/heka — pull request #190 by trink (2013-05-21 17:04:40+00:00)
Title: Issue #189 Prevent slow sandboxes from impacting the system throughput

- Close the filter/output input channel after the match runner loop exits so the
match runner input channel is properly drained.

- Add new metrics for the sandbox filters and updated the dashboard
- total number of messages processed
- a sample of the ProcessMessage() call average duration
- the TimerEvent() call average duration (output)

- Monitor the filter's input channel buffer depth and message processing time.
If the sandbox is running slowly and it is blocking router, terminate it.