Chapter 7. Application Monitoring
Iâve seen many companies with robust monitoring on their server infrastructure, great security monitoring, and a very capable network monitoring strategyâyet their applications are an unknowable black box. This always strikes me as odd, since most organizations are changing their applications more often than they are changing anything else, which means visibility into the performance of those applications should be of high importance.
I think itâs mostly because many teams think application monitoring is too hard or requires some highly specialized skillset. Thankfully, neither is true, and this chapter will help you on your way to having high visibility into your applications.
Instrumenting Your Apps with Metrics
One of the most powerful things you can do in monitoring is also one of the most overlooked things: instrumenting your own applications. Why would you want to do this? Easy: your apps have a ton of valuable information about their performance, many of which will allow you to move from reactive to proactive in maintaining that performance.
One common fear Iâve heard is that itâs difficult and time-consuming to add metrics to apps, but Iâm here to tell you neither are true. As with all things, starting simple is the key: what about timing how long database queries take? Or how long some external vendor API takes to respond? Or how many logins happen throughout the day?
Once you start instrumenting your app, it becomes addictive. ...
Get Practical Monitoring now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.