Monitoring Health and Performance

Cloud Monitoring provides performance monitoring, metrics, and uptime checks, along with alerts to send notifications when certain metric thresholds are exceeded. Google Cloud's operations suite pricing applies. Note that you can also use Cloud Monitoring custom metrics.

Cloud Run for Anthos on Google Cloud is automatically integrated with Cloud Monitoring with no setup or configuration required. This means that metrics of your Cloud Run for Anthos services are captured automatically when they are running.

You can view metrics either in Cloud Monitoring or in the Cloud Run page in the console. Cloud Monitoring provides more charting and filtering options.

Resource types

The monitoring resource name for Cloud Run for Anthos is Cloud Run on GKE Revision (knative_revision) .

Viewing metrics in Cloud Run for Anthos

To view metrics in Cloud Run for Anthos:

  1. Go to Cloud Run

  2. Locate the service in the services list, and click on it.

  3. Click the Metrics tab to show the metrics for that revision.

Viewing metrics in Cloud Monitoring

To view the metrics for a monitored resource by using Metrics Explorer, follow these steps:

  1. In the Google Cloud Console, go to the Monitoring page.

    Go to Monitoring

    If this is the first access of Monitoring for this Google Cloud project, then Cloud Monitoring creates a Workspace. Typically, this process is automatic and completes within a few minutes. If prompted to either select a Workspace or create a Workspace, select create.

  2. In the Monitoring navigation pane, click Metrics Explorer.
  3. Ensure that Metric is the selected tab.
  4. In the Find resource type and metric field, select from the menu or enter the name for the resource and metric. Use the following information to complete the fields:
    1. For the Resource, select the resource type Cloud Run for Anthos Revision (knative_revision).
    2. For the Metric, select one of the metrics in the menu. For a full description of the available metrics, see:
  5. To modify how the data is displayed, use the Filter, Group By, and Aggregator menus. For example, you can group by resource or metric labels. For more information, see Selecting metrics.

Adding Uptime checks

You can use Cloud Monitoring to keep track of your services' performance. For more information, see Verify availability of your service(uptime checks).

Adding Alerts

You can use Cloud Monitoring to send notification about certain events, such as uptime check failures. For more information, see Create and manage alerting policies for your service.