Display SLOs on a custom dashboard

Service-level objective (SLO) charts on a custom dashboard in Cloud Monitoring let you monitor the health, compliance, and remaining error budget of your services in a single view. Each chart summarizes how a service performs against a configured target so you can track SLO status across a set of services.

Before you can add an SLO chart, you must configure your services and SLOs; for more information, see SLO monitoring. The following screenshot illustrates a chart that displays the remaining error budget for an SLO:

Example of an SLO chart that shows the remaining error budget for an SLO.

This document describes how to add SLO charts by using the Google Cloud console. To configure them by using the Cloud Monitoring API, see Create and manage dashboards by API and Dashboard with an SLO widget.

Before you begin

Complete the following in the Google Cloud project where you want to create and modify dashboards:

Display SLOs on a dashboard

To add an SLO chart to a dashboard, do the following:

  1. In the Google Cloud console, go to the  Dashboards page:

    Go to Dashboards

    If you use the search bar to find this page, then select the result whose subheading is Monitoring.

  2. In the toolbar of the Google Cloud console, select your Google Cloud project. For App Hub configurations, select the App Hub host project or management project.
  3. Select a dashboard or click Create dashboard.
  4. In the toolbar, click  Add widget.
  5. In the Add widget dialog, select  SLO.
  6. In the Choose an SLO to show data pane, click Service, and then select a service.
  7. Select an existing SLO for the service from the Service-level Objectives menu.

    If the chosen service has no SLOs, then a message tells you that you must create one. To add an SLO, click Create SLO. For more information about creating SLOs, see Creating an SLO. After you create an SLO, select it and proceed to the next step.

  8. Select an SLO metric from the Service Level Objective Chart Type menu. You can select health, compliance, and absolute or fractional error budget. For more information about SLO metrics, see Retrieving SLO data.

  9. Optional: Update the chart title.

  10. To apply your changes to the dashboard, in the toolbar, click Apply. To discard your changes, click Cancel.

What's next

You can also add widgets to your custom dashboards that display the following:

For information about exploring charted data and filtering your dashboards, see the following documents: