or “Another day, another win for Honeycomb”

After an incident in production I needed to add a monitor for our api error rate (the previous alert had been disbanded and not replaced immediately…oups!). Since I had found the error using Honeycomb, I decided to use their Trigger feature to get alerted before the issue becomes too annoying for our customers and overflow our support team.

I was looking for a way to compute the rate of events with a status code ≥ 500 versus the total number of events. Thanks to Ben and Nathan at Honeycomb support I got a quick answer and solution, see below.

First, create a derived columns is_error

Second, execute a query using the AVG(is_error)

Third, create a Trigger

Et voilà ! Thanks again to Honeycomb for their great product and support.