Exam Essentials
Understand the need for monitoring and the role of metrics. Metrics provide data on the state of applications and infrastructure. We create conditions, like CPU exceeding 80 percent for 5 minutes, to trigger alerts. Alerts are delivered by notification channels. GCP has a substantial number of predefined metrics, but you can create custom metrics as well.
Stackdriver Logging collects, stores, filters, and displays log data. Logs can come from virtually any source. Logging keeps log data for 30 days. If you need to keep log data longer than that, then you need to export the data to a log sink. Log sinks may be a Cloud Storage bucket, a BigQuery data set, or a Cloud Pub/Sub topic.
Know how to filter logs. Logs can contain a large amount of data. Use filters to search for text or labels, limit log entries by log type and severity, and restrict the time range to a period of interest.
Log entries are hierarchical. Stackdriver Logging shows a single line summary for a log entry...