Add metric counter for drop counts when the ring buffer is full

Description

All the persistence of metrics goes first to the ring buffer. Then, the threads from the writer pool are responsible for grabbing data from the ring buffer and send it to Cassandra.

When the ring buffer is full, the Newts writer starts to drop data and an error message is logged. I think that besides logging an error is would be very useful to count how many metrics we are dropping, so we can estimate better if we should increase the thread pool, or the ring buffer, or both.

Of course, you might need an external tool like Hawtio to extract the data, as for obvious reason, it might be possible that it won't be available on Cassandra, if there are issues with the cluster, which is exactly the kind of things I'm interested on.

Acceptance / Success Criteria

None

Attachments

1
  • 22 Apr 2016, 05:24 PM

Lucidchart Diagrams

Activity

Show:

Alejandro Galue April 26, 2016 at 4:31 PM

Fixed

Details

Assignee

Reporter

Affects versions

Priority

PagerDuty

Created April 22, 2016 at 5:24 PM
Updated April 27, 2016 at 11:10 AM
Resolved April 27, 2016 at 7:10 AM