Manage synthetic monitors Stay organized with collections Save and categorize content based on your preferences.
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:
- Monitoring Editor (
roles/monitoring.editor) - Cloud Functions Developer (
roles/cloudfunctions.developer)
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.
- Monitoring Editor (
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.
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:
In the Google Cloud console, go to the
Synthetic monitoring page:If you use the search bar to find this page, then select the result whose subheading isMonitoring.
- In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
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 contains
default, do the following:- ClickFilter table and selectDisplay name.
- Enter
defaultand then press the return key.
If you have multiple filters, then the filters are automatically joinedby a logical
ANDunless you insert anORfilter.The previous example uses theORfilter so that an uptime check islisted if its name matchesdefaultorTesting 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_vertMore options menu.
gcloud
To list your uptime checks and synthetic monitors, runthegcloud monitoring uptime list-configscommand:
gcloudmonitoringuptimelist-configs--project=PROJECT_IDBefore 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:
- Click
projects.uptimeCheckConfigs.list. Use the APIs Explorer.
Set the method'sparent to the name of the project, ensure that youuse the following format:
projects/PROJECT_IDIn the previous expression,
PROJECT_IDis 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:
In the Google Cloud console, go to the
Synthetic monitoring page:If you use the search bar to find this page, then select the result whose subheading isMonitoring.
- In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
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_IDBefore 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 the
gcloud monitoring uptime list-configscommandand 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:
- Click
projects.uptimeCheckConfigs.get. 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_IDIn 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/10863117100295372627To find the value of theCHECK_ID, you can issue the
projects.uptimeCheckConfigs.listmethod.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:
In the Google Cloud console, go to the
Synthetic monitoring page:If you use the search bar to find this page, then select the result whose subheading isMonitoring.
- In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
- Locate the synthetic monitor that you want to edit,clickmore_vertMore options, and then selectEdit.
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 the
optionsobject in theindex.jsfile. For information aboutthe fields and syntax for this object, seebroken-links-ok/index.js.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_IDBefore 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 the
gcloud monitoring uptime list-configscommand 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_IDREST
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 modify an alerting policy, use the Google Cloud console or call the
alertPolicies.patchmethod. For more information,seeManage alerting policies by API.To modify a Cloud Run function, after you update the function sourceyou must redeploy the function. For more information, seeDeploy a Cloud Run function.
To edit a synthetic monitor, call theprojects.uptimeCheckConfigs.patch method:
- Click
projects.uptimeCheckConfigs.patch. Use the APIs Explorer.
Set the method'sparent to the identifier of the synthetic monitor,The identifier has the following format:
projects/PROJECT_ID/uptimeCheckConfigs/CHECK_IDIn 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 the
projects.uptimeCheckConfigs.listmethod.To reduce the number of returned results, include a filter.For example, add the filterdisplayName="MySyntheticMonitor".Set the method's query parameter,updateMask, to identify whichfields in the object are being modified. For example, to update thevalue of the
displayName, 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:
In the Google Cloud console, go to the
Synthetic monitoring page:If you use the search bar to find this page, then select the result whose subheading isMonitoring.
- In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
Locate the synthetic monitor that you want to edit,clickmore_vertMore options, and then selectCopy.
TheCopy Synthetic Check dialog opens with fields pre-populated,including a copy of the Cloud Run function.
ClickCreate function, update the function as necessary, and thenclickApply function.
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:
- Call the
projects.uptimeCheckConfigs.getmethodand save the response. For more information, seeView details of a synthetic monitor. - Edit the response.
- Call the
projects.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:
In the Google Cloud console, go to the
Synthetic monitoring page:If you use the search bar to find this page, then select the result whose subheading isMonitoring.
- In the toolbar of the Google Cloud console,select your Google Cloud project. ForApp Hubconfigurations, select the App Hub host project or management project.
Locate the synthetic monitor that you want to delete, and then click thename.
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.
In theSynthetic monitor details page,clickDelete, and then complete the dialog.
You've now deleted the synthetic monitor.
To delete the Cloud Run function, go to theFunctions details page,clickDelete, and then complete the dialog.
gcloud
To delete an uptime check or synthetic monitor,run thegcloud monitoring uptime deletecommand:
gcloudmonitoringuptimedeleteCHECK_ID--project=PROJECT_IDBefore 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 the
gcloud monitoring uptime list-configscommandand examining thename field. For more information, seeFind the unique identifier of a synthetic monitor.
REST
To delete a synthetic monitor and associated alerting policies, call theprojects.uptimeCheckConfigs.delete method:
- Click
projects.uptimeCheckConfigs.delete. 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_IDIn 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 the
projects.uptimeCheckConfigs.listmethod.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_IDTheCHECK_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.