You can create charts to display the status and latency of your uptime checks. If you haven't created an uptime check, you must create one prior to creating charts. See Creating uptime checks for details.
Uptime charts
You can use the Cloud Monitoringuptime_check/check_passed
metric as the
basis for a chart that displays the status of an uptime check.
For example, assume that you have an uptime check configured to check locations
every 1 minute and that you want to view the number of passed checks for each
location in a 10-minute window.
To use Metrics Explorer to view the metrics for a monitored resource, follow these steps:
- In the Google Cloud Console, go to the Monitoring page.
If you have never used Cloud Monitoring, then on your first access of Monitoring in the Google Cloud Console, a Workspace is automatically created and your project is associated with that Workspace. Otherwise, if your project isn't associated with a Workspace, then a dialog appears and you can either create a Workspace or add your project to an existing Workspace. We recommend that you create a Workspace. After you make your selection, click Add.
- In the Monitoring navigation pane, click
Metrics Explorer.
- Ensure that Metric is the selected tab.
- In the Find resource type and metric field, select from the menu or
enter the name for the resource and metric. Use the following information to complete the
fields:
- Enter
check_passed
. After this entry, the metric Check passed is displayed. - If the Resource isn't automatically populated for you, select the resource type that has the uptime check you want to monitor.
monitoring.googleapis.com/uptime_check/check_passed
. - Enter
- To modify how the data is displayed, use the Filter,
Group By, and Aggregator menus.
For this chart, use the following settings:
- Leave the Aggregator field at the defalt value of
none
. - For the Period field, select
10 m
. - Click Show advanced options and do the following:
- For the Aligner field, select
count true
.
- For the Aligner field, select
- Leave the Aggregator field at the defalt value of
Uptime check latency charts
You can use the Monitoringuptime_check/request_latency
metric
as a basis for uptime check latency charts. Your choices for the
aggregator fields let you create different charts.
You can, for example, set these fields to display the maximum latency or to
display the total latency.
To use Metrics Explorer to view the metrics for a monitored resource, follow these steps:
- In the Google Cloud Console, go to the Monitoring page.
If you have never used Cloud Monitoring, then on your first access of Monitoring in the Google Cloud Console, a Workspace is automatically created and your project is associated with that Workspace. Otherwise, if your project isn't associated with a Workspace, then a dialog appears and you can either create a Workspace or add your project to an existing Workspace. We recommend that you create a Workspace. After you make your selection, click Add.
- In the Monitoring navigation pane, click
Metrics Explorer.
- Ensure that Metric is the selected tab.
- In the Find resource type and metric field, select from the menu or
enter the name for the resource and metric. Use the following information to complete the
fields:
- Enter
uptime_check/request_latency
. After this entry, the metric Check passed is displayed. - If the Resource isn't automatically populated for you, select the resource type that has the uptime check you want to monitor.
monitoring.googleapis.com/uptime_check/request_latency
. - Enter
- To modify how the data is displayed, use the Filter,
Group By, and Aggregator menus.
For this chart, use the following settings:
- Leave the Aggregator field at the defalt value of
none
. - For the Period field, select
10 m
. - Click Show advanced options and do the following:
- For the Aligner field, select
mean
.
- For the Aligner field, select
- Leave the Aggregator field at the defalt value of
What's next
- For details on creating, editing, titling, and designing charts, see Creating and managing dashboard widgets.
- For more information on metrics for uptime checks, see the table of monitoring metrics.
- For more information about the combining time series,
see
Aggregation
.