We will look at monitoring in a lot more detail in Chapter 15, Monitoring Your Infrastructure, but it is wise to mention this again in terms of security. Stackdriver is Google's service for the monitoring and management of services, containers, applications, and infrastructure. Stackdriver's features offer error reporting, debugging, alerts, tracing, and logging.
Logging assists in securing GCP and minimizing the downtime of your applications. Monitoring allows you to monitor application metrics that can flag an anomaly. Moreover, Stackdriver Debugger inspects the state of your production data and compares your source code without any performance overhead. Logging allows for real-time metrics logging and retains a set period, depending on the log type. If you have security requirements to keep logs for a longer period, then they can be exported...