This documentation is for the Latest version of Cloud Run for Anthos, which uses Anthos fleets and Anthos Service Mesh. Learn more.

The past version has been archived but the documentation remains available for existing users.

Monitoring health and performance

Cloud Run for Anthos uses Cloud Monitoring, which provides performance monitoring, metrics, uptime checks, and threshold based alerts. You can also set up and use Cloud Monitoring custom metrics. Google Cloud's operations suite pricing applies.

For clusters on Google Cloud, Cloud Run for Anthos is automatically integrated with Cloud Monitoring without additional configuration. This means that the metrics for your Cloud Run for Anthos services are captured automatically when they are running.

For other clusters, you must first enable metrics by configuring your CloudRun custom resource.

You can view metrics either in Cloud Monitoring or in the Cloud Run for Anthos 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 for Anthos Revision (knative_revision) .

Viewing metrics in Cloud Run for Anthos

To view metrics in Cloud Run for Anthos:

  1. Go to Cloud Run for Anthos in the console:

    Go to Cloud Run for Anthos

  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 use Metrics Explorer to view the metrics for a monitored resource, follow these steps:

  1. In the Google Cloud console, go to the Metrics Explorer page within Monitoring.
  2. Go to Metrics Explorer

  3. In the toolbar, select the Explorer tab.
  4. Select the Configuration tab.
  5. Expand the Select a metric menu, enter Cloud Run for Anthos Revision in the filter bar, and then use the submenus to select a specific resource type and metric:
    1. In the Active resources menu, select Cloud Run for Anthos Revision.
    2. To select a metric, use the Active metric categories and Active metrics menus. For a full description of the available metrics, see:
    3. Click Apply.
  6. Optional: To configure how the data is viewed, add filters and use the Group By, Aggregator, and chart-type menus. For example, you can group by resource or metric labels. For more information, see Select metrics when using Metrics Explorer.
  7. Optional: Change the graph settings:
    • For quota and other metrics that report one sample per day, set the time frame to at least one week and set the plot type to Stacked bar chart.
    • For distribution valued metrics, set the plot type to Heatmap chart.

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.