icon picker
Cloud Monitoring

Cloud Monitoring automatically collects and stores performance information for most Google Cloud services. You can collect metrics by using . If you install the on your Compute Engine virtual machines (VMs), then you can collect metrics and logs from your applications and from third-party applications.
The alerting, testing, and visualization services provided by Cloud Monitoring help you answer important questions like the following:
What is the load on my service?
Is my website responding correctly?
Is my service performing well?
Cloud Monitoring provides both Google Cloud console and API support for most of its services. Some services also support the Google Cloud CLI or Terraform. The Cloud Monitoring API reference pages, such as the page , let you experiment with API calls directly from the reference page.
image.png

How alerting works?

The Cloud Monitoring alerting process contains three parts:
An alerting policy, which describes the circumstances under which you want to be alerted and how you want to be notified about an incident. The alerting policy can monitor time-series data stored by Monitoring or logs stored by Cloud Logging. When that data meets the alerting policy condition, Monitoring creates an and sends the notifications.
Each incident is a record of the type of data that was monitored and when the conditions were met. This information can help you troubleshoot the issues that caused the incident.
A defines how you receive notifications when Monitoring creates an incident. For example, you can configure an notification channel to email my-support-team@example.com and to post a Slack message to the channel #my-support-team. An alerting policy can contain one or more notification channels.

Alerting policies can evaluate three types of data:
Time-series data, also called metric data, which is stored by Monitoring. These types of policies are called metric-based alerting policies.
To learn how to set up a metric-based alerting policy, try the .
Log entry data stored by Cloud Logging. Alerting policies that evaluate individual log entries are called log-based alerting policies. Log-based alerting policies notify you when a particular message appears in your logs. For more information, see .
The results of a SQL query run in against log entry data stored in Logging. Alerting policies that monitor the results of a SQL query are called SQL-based alerting policies. For more information, see .



image.png

image.png
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.