Manage synthetic monitors

This document describes how to manage your synthetic monitors. You canview a list of your synthetic monitors, and for each synthetic monitor, youcan view and modify the configuration, view the execution history, and viewdetails about each execution. You can manage your synthetic monitors by usingthe Google Cloud console or by using the Cloud Monitoring API.

For information about how to explore the execution results and themetrics and logs for a synthetic monitor, seeExplore synthetic monitor results.

This feature is supported only for Google Cloud projects.ForApp Hubconfigurations, select the App Hub host project or management project.

Before you begin

Complete the following in the Google Cloud project that stores your synthetic monitor:

  • To get the permissions that you need to view and modify synthetic monitors by using the Google Cloud console, ask your administrator to grant you the following IAM roles on your project:

    For more information about granting roles, seeManage access to projects, folders, and organizations.

    You might also be able to get the required permissions throughcustom roles or otherpredefined roles.

  • The API instructions on this page are for the APIs Explorer. However,you can also issue a curl command. The APIs Explorer provides the curlsyntax.

  • Select the tab for how you plan to use the samples on this page:

    Console

    When you use the Google Cloud console to access Google Cloud services and APIs, you don't need to set up authentication.

    gcloud

    In the Google Cloud console, activate Cloud Shell.

    Activate Cloud Shell

    At the bottom of the Google Cloud console, aCloud Shell session starts and displays a command-line prompt. Cloud Shell is a shell environment with the Google Cloud CLI already installed and with values already set for your current project. It can take a few seconds for the session to initialize.

    REST

    To use the REST API samples on this page in a local development environment, you use the credentials you provide to the gcloud CLI.

      Install the Google Cloud CLI. After installation,initialize the Google Cloud CLI by running the following command:

      gcloudinit

      If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.

    For more information, seeAuthenticate for using REST in the Google Cloud authentication documentation.

List synthetic monitors

Console

To list the synthetic monitors in your Google Cloud project, do the following:

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

    Go toSynthetic monitoring

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

  2. In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
  3. Optional: To restrict which synthetic monitors are listed, add filters.

    Each filter is composed of a name and a value.You can set the value to be an exact match for an synthetic monitor nameor a partial match. Matches aren't case sensitive. For example, to list allsynthetic monitors whose name containsdefault, do the following:

    • ClickFilter table and selectDisplay name.
    • Enterdefault and then press the return key.

    If you have multiple filters, then the filters are automatically joinedby a logicalAND unless you insert anOR filter.The previous example uses theOR filter so that an uptime check islisted if its name matchesdefault orTesting check.

TheSynthetic monitors page displays the following for eachsynthetic monitor:

  • Status of the most recent execution.
  • A link to detailed information about that synthetic monitor.
  • The success rate and average execution time.
  • The number of alerting policies.
  • To edit, copy, or delete the synthetic monitor, and to create analerting policy, use theMore options menu.

gcloud

To list your uptime checks and synthetic monitors, runthegcloud monitoring uptime list-configscommand:

gcloudmonitoringuptimelist-configs--project=PROJECT_ID

Before you run the previous command, replace the following:

  • PROJECT_ID: The identifier of the project. ForApp Hubconfigurations, select the App Hub host project or management project.

The returned data includes the following:

  • Name and display name.
  • Check identifier.
  • Monitored resource.
  • Period between checks.

You can configure the Google Cloud CLI command to filter and sort the results.

REST

To list the synthetic monitors in your Google Cloud project, includinguptime checks, call theprojects.uptimeCheckConfigs.list method:

  1. Clickprojects.uptimeCheckConfigs.list.
  2. Use the APIs Explorer.

    Set the method'sparent to the name of the project, ensure that youuse the following format:

    projects/PROJECT_ID

    In the previous expression,PROJECT_ID is your Google Cloud project ID.ForApp Hubconfigurations, select the App Hub host project or management project.

For a synthetic monitor, the result contains a field labeledsyntheticMonitor.

View details of a synthetic monitor

Console

To view the details of a synthetic monitor in your Google Cloud project,do the following:

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

    Go toSynthetic monitoring

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

  2. In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
  3. To open theSynthetic monitor details page, locate thesynthetic monitor that you want to view, and then click its name.

    If you want to view your Cloud Run function from theFunctions details pageprovided by Cloud Run functions, then select theCode tab and thenclick the function's name. TheFunctions details page opensin a new window. The tabs on this page let you view metrics and logs,and configuration information.

gcloud

To list the details of an uptime check or synthetic monitor,run thegcloud monitoring uptime describecommand:

gcloudmonitoringuptimedescribeCHECK_ID--project=PROJECT_ID

Before you run the previous command, replace the following:

  • PROJECT_ID: The identifier of the project. ForApp Hubconfigurations, select the App Hub host project or management project.
  • CHECK_ID: The identifier of the uptime check or synthetic monitor.You can find theidentifier by running thegcloud monitoring uptime list-configs commandand examining thename field. For more information, seeFind the unique identifier of a synthetic monitor.

The data returned for the uptime check includes the following:

  • Name and display name.
  • Check identifier.
  • Monitored resource.
  • Period between checks.

REST

To list the details of a specific synthetic monitor in your Google Cloud project,call theprojects.uptimeCheckConfigs.get method:

  1. Clickprojects.uptimeCheckConfigs.get.
  2. Use the APIs Explorer.

    Set the method'sparent to the identifier of the synthetic monitor,ensure that you use the following format:

    projects/PROJECT_ID/uptimeCheckConfigs/CHECK_ID

    In the previous expression:

    • PROJECT_ID is your Google Cloud project ID. ForApp Hubconfigurations, select the App Hub host project or management project.
    • CHECK_ID is the ID of the synthetic monitor.

    For example, the value of the parent field might be:

    projects/my-project/uptimeCheckConfigs/10863117100295372627

    To find the value of theCHECK_ID, you can issue theprojects.uptimeCheckConfigs.list method.To reduce the number of returned results, include a filter.For example, add the filterdisplayName="MySyntheticMonitor".

Edit a synthetic monitor or Cloud Run function

Console

Note: If you only want to modify the Cloud Run function,then you can use theFunction details page or theSynthetic monitor details page.In both cases, you must select the edit option, make your changes,and then deploy the modified Cloud Run function.

To edit a synthetic monitor or its Cloud Run function byusing theSynthetic monitor details page, do the following:

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

    Go toSynthetic monitoring

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

  2. In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
  3. Locate the synthetic monitor that you want to edit,clickMore options, and then selectEdit.
  4. Optional: To edit the Cloud Run function, clickEdit function,make your changes, and then clickApply function.

    For broken-link checkers, to modify the origin URI or the options thatdefine which links are tested, edit the Cloud Run function, and thenupdate theoptions object in theindex.js file. For information aboutthe fields and syntax for this object, seebroken-links-ok/index.js.

  5. To retain your modifications, clickSave. Otherwise, clickCancel.

gcloud

To modify an uptime check or synthetic monitor,run thegcloud monitoring uptime updatecommand:

gcloudmonitoringuptimeupdateCHECK_IDOPTIONAL_FLAGS--project=PROJECT_ID

Before you run the previous command, replace the following:

  • PROJECT_ID: The identifier of the project. ForApp Hubconfigurations, select the App Hub host project or management project.
  • CHECK_ID: The identifier of the uptime check orsynthetic monitor. You can find the identifier by running thegcloud monitoring uptime list-configs command andexamining thename field. For more information, seeFind the unique identifier of an uptime check.

  • Define which fields that you want to modify. For synthetic monitors, you canonly update the following fields:

    • Period
    • Display name
    • Timeout
    • User labels

For example, to set the period of a synthetic monitor to be 10 minutes,run the following command:

gcloudmonitoringuptimeupdateCHECK_ID--period=10--project=PROJECT_ID

REST

Alerting policies and functions aren't contained by a synthetic monitor, andtherefore they can't be edited by the procedure described in this section:

To edit a synthetic monitor, call theprojects.uptimeCheckConfigs.patch method:

  1. Clickprojects.uptimeCheckConfigs.patch.
  2. Use the APIs Explorer.

    1. Set the method'sparent to the identifier of the synthetic monitor,The identifier has the following format:

      projects/PROJECT_ID/uptimeCheckConfigs/CHECK_ID

      In the previous expression:

      • PROJECT_ID is your project ID. ForApp Hubconfigurations, select the App Hub host project or management project.
      • CHECK_ID is the ID of the synthetic monitor.

      To find the value of theCHECK_ID, you can issue theprojects.uptimeCheckConfigs.list method.To reduce the number of returned results, include a filter.For example, add the filterdisplayName="MySyntheticMonitor".

    2. Set the method's query parameter,updateMask, to identify whichfields in the object are being modified. For example, to update thevalue of thedisplayName, then query parameter is as follows:

      updateMask=displayName

Copy a synthetic monitor

Console

To copy a synthetic monitor in your Google Cloud project, do the following:

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

    Go toSynthetic monitoring

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

  2. In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
  3. Locate the synthetic monitor that you want to edit,clickMore options, and then selectCopy.

    TheCopy Synthetic Check dialog opens with fields pre-populated,including a copy of the Cloud Run function.

  4. ClickCreate function, update the function as necessary, and thenclickApply function.

  5. To retain your modifications, clickCreate. Otherwise, clickCancel.

    When you clickCreate, your Cloud Run function is created anddeployed, and then the synthetic monitor is created.

gcloud

There is no Google Cloud CLI method that lets you copy a synthetic monitor.

REST

There is no API method that lets you copy a synthetic monitor. However, you canmake a copy by performing the following steps:

  1. Call theprojects.uptimeCheckConfigs.get methodand save the response. For more information, seeView details of a synthetic monitor.
  2. Edit the response.
  3. Call theprojects.uptimeCheckConfigs.createmethod and pass to the method the edited response.

Delete a synthetic monitor

Console

Note: When you delete an uptime check or synthetic monitor by using theGoogle Cloud console, you also delete associated alerting policies. However,deleting a synthetic monitor doesn't delete the Cloud Run function.

To delete a synthetic monitor and any associated alerting policies,do the following:

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

    Go toSynthetic monitoring

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

  2. In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
  3. Locate the synthetic monitor that you want to delete, and then click thename.

  4. Optional: If you want to delete the Cloud Run function, thenthen select theCode tab and thenclick the function's name. TheFunctions details page opensin a new window.

  5. In theSynthetic monitor details page,clickDelete, and then complete the dialog.

    You've now deleted the synthetic monitor.

  6. To delete the Cloud Run function, go to theFunctions details page,clickDelete, and then complete the dialog.

gcloud

Note: You can't delete an uptime check or a synthetic monitor by using theGoogle Cloud CLI or the Cloud Monitoring API when there is an alerting policyassociated with that uptime check or synthetic monitor. You mustdelete the alerting policy first. Deleting a synthetic monitor doesn'tdelete the Cloud Run function.

To delete an uptime check or synthetic monitor,run thegcloud monitoring uptime deletecommand:

gcloudmonitoringuptimedeleteCHECK_ID--project=PROJECT_ID

Before you run the previous command, replace the following:

  • PROJECT_ID: The identifier of the project. ForApp Hubconfigurations, select the App Hub host project or management project.
  • CHECK_ID: The identifier of the uptime check or synthetic monitor.You can find theidentifier by running thegcloud monitoring uptime list-configs commandand examining thename field. For more information, seeFind the unique identifier of a synthetic monitor.

REST

Note: You can't delete an uptime check or a synthetic monitor by using theGoogle Cloud CLI or the Cloud Monitoring API when there is an alerting policyassociated with that uptime check or synthetic monitor. You mustdelete the alerting policy first. Deleting a synthetic monitor doesn'tdelete the Cloud Run function.

To delete a synthetic monitor and associated alerting policies, call theprojects.uptimeCheckConfigs.delete method:

  1. Clickprojects.uptimeCheckConfigs.delete.
  2. Use the APIs Explorer.

    Set the method'sparent to the identifier of the synthetic monitor,ensure that you use the following format:

    projects/PROJECT_ID/uptimeCheckConfigs/CHECK_ID

    In the previous expression:

    • PROJECT_ID is your project ID. ForApp Hubconfigurations, select the App Hub host project or management project.
    • CHECK_ID is the ID of the synthetic monitor.

    To find the value of theCHECK_ID, you can issue theprojects.uptimeCheckConfigs.list method.To reduce the number of returned results, include a filter.For example, add the filterdisplayName="MySyntheticMonitor".

Find the unique identifier of a synthetic monitor

When your synthetic monitor is created, Monitoring assigns it anidentifier. This identifier is embedded inthe resource name for the synthetic monitor and has the form:

projects/PROJECT_ID/uptimeCheckConfigs/CHECK_ID

TheCHECK_ID is included in the response of the Google Cloud CLIand Cloud Monitoring API methods that create or list synthetic monitors.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.