Monitoring Multiple Projects with Cloud Monitoring
Create a Monitoring Metrics Scope
Monitoring Overview
About Cloud Monitoring Groups
Cloud Monitoring lets you define and monitor groups of resources, such as VM instances, databases, and load balancers
Create a Cloud Monitoring Group
Uptime Check for your group
Alerting Policy for the group
Custom dashboard for your group
Remove one instance to cause a problem
Incidents
Monitoring and Logging for Cloud Functions
Viewing Cloud Function logs & metrics in Cloud monitoring
Create logs-based metric
Metrics Explorer
Create a Monitoring Metrics Scope
Create charts on the Monitoring Overview window
Reporting Application Metrics into Cloud Monitoring
Theory
OpenCensus is an open source framework for metrics collection and distributed tracing. It offers the following benefits to its users
Low overhead data collection
Standard wire protocols and consistent APIs for handling metrics and trace data
Vendor interoperability via the OpenMetrics standard. OpenCensus can ingest into multiple backends in parallel, enabling incremental transitions and side-by-side comparison of backends
Correlation with traces and, in the future, log entries
Create a Compute Engine instance
Install Go and OpenCensus on your instance
Create a Monitoring Metrics Scope
The Cloud Monitoring agent is a collectd-based daemon that gathers system and application metrics from virtual machine instances and sends them to Monitoring
Create a basic application server in Go
Defining & recording measures using OpenCensus
Setting up metrics collection & aggregation
Reporting default metrics to Cloud Monitoring
View your application metrics in Cloud Monitoring
Other methods for reporting application metrics to Cloud Monitoring
Creating and Alerting on Logs-based Metrics
Theory
Log-based metrics are Cloud Monitoring metrics that are based on the content of log entries
The log-based metrics interface is divided into two metric-type panes: System metrics and User-defined metrics
System-defined log-based metrics are provided by Cloud Logging for use by all Google Cloud projects, They calculated only from logs that have been ingested by Logging
User-defined log-based metrics are created by you to track things in your Google Cloud project