An operations engineer needs to set up automated alerts whenever specific application error log entries occur in Google Cloud. Order the steps required to configure an operational alert using a custom log-based metric and Cloud Monitoring.
- 1Define a filter query in Cloud Logging to match the specific application error log entries.
- 2Create a custom log-based metric based on the defined log filter.
- 3Configure an alerting policy in Cloud Monitoring using the custom log-based metric as the metric threshold condition.
- 4Assign a notification channel to the alerting policy and save the configuration.
Cevap
The correct sequence for configuring operational alerts based on log events is: 1) Define the filter query in Cloud Logging, 2) Create a custom log-based metric from the filter, 3) Configure an alerting policy in Cloud Monitoring referencing the custom metric, and 4) Attach notification channels to the alerting policy.
The logical sequence for establishing operational alerting from raw logs begins by defining a log filter in Cloud Logging. Next, a custom log-based metric is created to extract data or count matching log lines over time. Then, Cloud Monitoring uses this log-based metric to build an alerting policy with specific threshold triggers. Finally, notification channels are associated with the policy to complete the alert delivery setup.
Adım Adım Çözüm
Anahtar Kavram
Configuring Log-Based Metrics and Operational Alerting in GCP
Tahmini Süre:1m 0s