Monitor system performance, get notified when things change, and identify possible causes.
Use Cloud Observability alerts to do the following:
This page describes Cloud Observability alerts at a high level and links to more content to help you get started.
Using Terraform? You can use the Cloud Observability Terraform provider to create and manage your alerts and destinations. You can also use it to export existing alerts into the Terraform format.
This section describes an alert in practice.
If your customer Packing Kings is onboarding new clients, you may want to create an alert to monitor request rates. The following alert configuration:
When average request rates cross alert thresholds, Cloud Observability sends a notification to the configured destination. It also sends a notification once the issue is resolved or the metric goes below the threshold.
Cloud Observability offers five alert templates to help you configure and set up alerts:
Use Custom to alert on one query or several queries combined with a formula.
This option is the most flexible template. Choose Custom if you’re starting out and exploring alerting options.
Here are some examples of Custom alerts:
Use Change to alert on changes in your data over time.
With this option, you can set alert thresholds comparing current data to data from the last minutes, hours, days, or weeks. Choose this template if you have highly variable data, making it hard to identify fixed thresholds for system health.
Here are some examples of Change alerts:
Use Composite to combine several alerts into one alert.
With Composite alerts, you can alert on many conditions and combine log, metric, and trace alerts. Choose this template to define and act on specific system-health indicators.
Here are some examples of Composite alerts:
Evaluating Composite alert status
Cloud Observability uses AND (&&
) to evaluate a Composite alert’s status.
For example, if one sub alert &&
another sub alert are Critical
, Cloud Observability sends a Critical
alert notification.
The table below outlines how Cloud Observability evaluates &&
for Composite alerts.
At a high level, Cloud Observability assigns the least severe status to Composite alerts.
Sub alert A status | Sub alert B status | Composite alert status |
---|---|---|
Critical |
Critical |
Critical |
Warning |
Critical |
Warning |
Warning |
Warning |
Warning |
No data |
Critical |
No data |
No data |
Warning |
No data |
No data |
No data |
No data |
OK |
OK |
OK |
OK |
No data |
OK |
OK |
Warning |
OK |
OK |
Critical |
OK |
Unknown |
Critical |
Unknown |
Unknown |
Warning |
Unknown |
Unknown |
No data |
Unknown |
Unknown |
OK |
Unknown |
Unknown |
Unknown |
Unknown |
Composite alert notifications
Composite alert notifications differ from Change and Custom alerts. Composite alert notifications:
Use Anomaly to alert when current values deviate from baseline averages using standard deviations. Choose this template to detect when current data behaves differently from past data.
Here are some examples of Anomaly alerts:
Use Outlier to alert when data behaves differently from other data in its group. This template works with metrics only.
Here are some examples of Outlier alerts:
Notification destinations receive Cloud Observability notifications for triggered alerts. With notification destinations, you can integrate Cloud Observability alerts into your existing setup and let people know when alerts trigger.
Cloud Observability supports the notification destinations listed below. Follow the links to learn how to integrate them with Cloud Observability:
Cloud Observability’s correlation feature helps you investigate performance changes. When alerts trigger, use that feature to view trace data related to your alert and find possible causes.
For more information, visit Investigate deviations.
Visit the links below to start working with Cloud Observability alerts.
Manage notification destinations
Updated Nov 27, 2023