Chapter 8. Monitoring
Whenever you deploy a cloud-based application that processes many different user requests or runs a long batch calculation, monitoring its evolution is essential.
You need to keep a log of all of the different actions that involve your system as well as each request so that you can review and analyze them. You might detect that something is taking longer than it should and that one of the steps is bottlenecking the entire system. You might also want to get automatic alerts when something is not working properly so that a responsible technician can act on it.
In this final chapter, we focus on how you can use Azure Monitor to ensure that you have insight into how your serverless project is performing.
Azure Monitor
Because we are using the Azure cloud infrastructure for our serverless solutions, we can rely on the Azure Monitor service.
Azure Monitor is a solution for collecting telemetry data and analyzing it in a cloud environment. With Azure Monitor, you can understand how your cloud applications are performing and identify possible issues affecting them.
An Azure Monitor configuration for a project can be divided into three different aspects, as depicted in Figure 8-1: the storage of all the data for metrics and logs, the analysis and alerting functionality, and log streaming to other systems.
Figure 8-1. Overview of Azure Monitor (figure courtesy of Microsoft, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access