Monitoring Health and Performance

Stackdriver Monitoring provides Cloud Run performance monitoring, metrics, and uptime checks, along with alerts to send notifications when certain metric thresholds are exceeded. Note that Stackdriver pricing applies, which means there is no charge for metrics on the fully managed version of Cloud Run.

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

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

Resource types

The resource type differs for Cloud Run (fully managed) and Cloud Run for Anthos on Google Cloud:

  • For Cloud Run (fully managed) the monitoring resource name is "Cloud Run Revision" (cloud_run_revision).

  • For Cloud Run for Anthos on Google Cloud the monitoring resource name is "Cloud Run on GKE Revision" (knative_revision) .

Viewing metrics in Cloud Run

To view metrics in Cloud Run:

  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 Stackdriver Monitoring

To access metrics for your project in Stackdriver Monitoring:

  1. If you haven't done so already, add your project to a Stackdriver Monitoring workspace.

  2. Visit the Stackdriver Monitoring Metrics Explorer page in your project:

    Go to Metrics Explorer

  3. In Find resource type and metric, select the resource type that corresponds to your platform you are using, as documented above.

  4. Select one of the metrics in the dropdown list. Find a full description of the available metrics:

Adding Uptime checks

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

Adding Alerts

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

Kunde den här sidan hjälpa dig? Berätta:

Skicka feedback om ...

Cloud Run Documentation