Bitzu

Associate Cloud Engineer ยท Monitoring and alerting

Cloud Monitoring alerting policies

Metrics scopes, alerting policies on resource metrics, conditions, duration, notification channels, incidents.

Key points

  • A policy holds one or more conditions (metric-threshold, metric-absence or forecast), a retest window that must be violated continuously, and notification channels.
  • When a condition is met an alert opens and every channel of the policy is notified.
  • Data comes from the projects in the metrics scope.

Source: https://docs.cloud.google.com/monitoring/alerts/concepts-indepth

Practice questions

Single choice

Which part of an alerting policy decides who gets told when a condition is met?

  1. The retest window
  2. The notification channels
  3. The metric filter
  4. The aggregation alignment period
Show answer

Answer: B. The notification channels

Notification channels (email, chat, paging and so on) are attached to the policy. The condition only decides when to fire; the retest window only delays it.

Select all that apply

Which statements about alerting policies are accurate?

  1. A policy can contain up to six conditions
  2. Notifications go to all channels of the policy
  3. Only one alert stays open per time series in a policy
  4. Each notification can target just one chosen channel
  5. A disabled policy still opens alerts but stays silent
Show answer

Answer: A. A policy can contain up to six conditions, B. Notifications go to all channels of the policy, C. Only one alert stays open per time series in a policy

A policy can hold up to six conditions, notifies all of its channels, and keeps one open alert per time series. You cannot pick a single channel per notification, and disabled policies open no alerts.

True or false

With a 10-minute retest window on a threshold condition, one single data point above the threshold is enough to open an alert.

Show answer

Answer: False

False. Every aligned measurement in the window must violate the threshold; any non-violating point resets the timer.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module