Summary
Monitoring is always a critical part of any infrastructure. With a dynamic environment such as AWS, CloudWatch provides lots of features to monitor your infrastructure, but it's not a replacement of full-fledged monitoring solutions such as Nagios or Prometheus.
In this chapter, we have learned how to set up CloudWatch and the default metrics (CPU, disk, and network) we can monitor using it. In most production scenarios, we need to monitor additional metrics such as memory, and we have learned how to push these additional custom metrics to CloudWatch. We learned that with monitoring, we need an alerting service that will notify us in the case of issues, and to solve that, AWS provides a service called SNS. We further integrated SNS with CloudWatch Events to provide near-real-time monitoring. Finally, we looked at how we integrate SNS with Slack via Lambda to enhance our notification capabilities further.
In the next chapter, we will look at AWS's centralized...