A Site Reliability Engineering (SRE) team needs to set up real-time operational alerting whenever application logs contain critical error events. Sequence the correct administrative steps required to construct a metric-based alerting workflow from Cloud Logging to Cloud Monitoring.
- 1Define a log filter query in Cloud Logging that isolates the specific application error log entries.
- 2Create a counter log-based metric using the defined log filter to export event counts into Cloud Monitoring.
- 3Configure a notification channel in Cloud Monitoring to define where operational alerts should be delivered.
- 4Construct a Cloud Monitoring alerting policy specifying the metric threshold condition and attaching the notification channel.
Cevap
The correct sequence begins with writing the log filter query in Cloud Logging to select error logs, followed by creating a counter log-based metric from that filter, configuring a notification channel in Cloud Monitoring, and finally constructing an alerting policy that evaluates the log-based metric threshold and targets the notification channel.
The operational workflow begins by isolating relevant log entries using a log filter in Cloud Logging. Once filtered, a counter log-based metric is created to translate these log events into time-series data. Next, a notification channel is defined in Cloud Monitoring to serve as the alert destination. Finally, an alerting policy is created that monitors the custom log-based metric against specified thresholds and dispatches notifications via the defined channel.
Adım Adım Çözüm
Anahtar Kavram
Log-based metric creation and operational alerting workflow