Good news! New Relic has just rolled out a pair of cool little New Relic APM features that have been sitting in our backlog for quite some time. You can now add alerts and annotations to charts!
If you work in software, there are always no-brainer enhancements that somehow never quite get the priority they need to have someone spend real time working on them. Sprint after sprint goes by, but there they are, still waiting for someone to pick them up off the shelf.
Well, big thanks to one of our senior most engineers, who finally got so fed up that he decided to jump into the code and go berserker style and get it shipped like a boss. Let’s take a look at the results:
Alerts in charts
New Relic APM charts can already render with markers indicating deployments and downtimes, like so:
But now, in addition to showing deployments and outages, charts can show all critical events including threshold violations on your applications, servers, and plugins, giving you a more direct indication of when problems start occurring. Yay! As you select longer time ranges, the chart can show more and more events. The red regions get more opaque where events overlap.
Another often-requested feature is the ability to annotate charts. Dev and ops teams want to be able to select a chart region and add a note to communicate and preserve causation to bad performance. For instance, a typical annotation might read: “The drop in response time here was due to the introduction of a request cache.”
Users had been able to create notes in New Relic with annotations and snapshots of charts but they couldn’t annotate the original chart. That meant the note appeared only in the index of notes and the recent events. Unless the user sent the note to colleagues, most people would never know the note existed.
Now, APM is designed so that creating a note has a side effect of leaving an annotation in the chart to which you added the note. Again: yay! The annotation appears as a green highlighted region with a tooltip containing the user’s name and the comments from the note. If you click on the green background of the region, you are taken to the original note.
To add annotations to charts, just click the + icon on any chart, then choose “add to note” and enter your comments. To remove an annotation, remove the chart from the note, or delete the note.
That’s about it. One more, thanks again to our friend The Code Berserker. If he decides to go off and add any more super-handy features, we’ll be sure to let you know!