An operations engineering team needs to configure automated incident notifications based on specific error logs emitted by a workload running on Google Cloud. Order the steps required to establish a complete log-based alerting pipeline following Google Cloud observability best practices, starting from raw log evaluation to operational notification.
- 1Construct a precise filter expression in Cloud Logging to isolate the specific error log entries emitted by the workload.
- 2Define a custom log-based metric from the filtered log entries to count the matching log occurrences over time.
- 3Configure an alerting policy in Cloud Monitoring with a threshold condition that monitors the rate of the custom log-based metric.
- 4Attach notification channels to the alerting policy to dispatch notifications when the threshold condition is breached.
Cevap
The correct operational sequence is: 1) Construct a precise filter expression in Cloud Logging, 2) Define a custom log-based metric, 3) Configure an alerting policy in Cloud Monitoring using the custom metric, and 4) Attach notification channels to the alerting policy.
To create operational alerts driven by specific log occurrences, you must first define a filter expression in Cloud Logging to pinpoint the error logs. Next, transform those log events into numeric metric data by creating a custom log-based metric. Once the metric is ingested by Cloud Monitoring, construct an alerting policy that evaluates the metric against operational thresholds. Finally, associate notification channels with the alerting policy so that responders receive notifications when an incident is opened.
Adım Adım Çözüm
Anahtar Kavram
Configuring Cloud Logging log-based metrics and Cloud Monitoring alerting workflows