A team wants to receive an email alert when the average CPU utilization of VMs in a managed instance group exceeds 80% for more than 5 minutes. What should they create in Cloud Monitoring?
Trap 1: A dashboard with a CPU utilization chart
Dashboards display metrics visually but do not send notifications — they require a human to observe the chart.
Trap 2: A log-based metric filter for high-CPU events
Log-based metrics extract numeric values from log entries — CPU utilization is a time-series metric, not a log-based event.
Trap 3: An uptime check targeting the managed instance group
Uptime checks verify that an endpoint is reachable and returns an expected response — they don't monitor resource utilization metrics.
- A
A dashboard with a CPU utilization chart
Why wrong: Dashboards display metrics visually but do not send notifications — they require a human to observe the chart.
- B
An alerting policy with a CPU utilization threshold condition
Alerting policies evaluate metric conditions continuously and send notifications via configured channels when thresholds are breached for the specified duration.
- C
A log-based metric filter for high-CPU events
Why wrong: Log-based metrics extract numeric values from log entries — CPU utilization is a time-series metric, not a log-based event.
- D
An uptime check targeting the managed instance group
Why wrong: Uptime checks verify that an endpoint is reachable and returns an expected response — they don't monitor resource utilization metrics.