To understand the responsiveness of the service being monitored, chart the latency metric of an uptime check. Similarly, to understand which regions are responding successfully to an uptime check, chart the status metric of an uptime check.
This document describes how to chart metrics generated by uptime checks by using Metrics Explorer. For information about how to save these charts to a custom dashboard, see Save a chart for future reference.
Before you begin
You must have an uptime check to use these instructions. If you haven't created an uptime check, then see Create public uptime checks or Create private uptime checks.
Chart uptime-check status
You can use the Cloud Monitoringuptime_check/check_passed
metric as the
basis for a chart that displays the status of an uptime check.
The following example charts, by location, the number of passed checks in a 10-minute window:
- In the Google Cloud console, go to the Metrics Explorer page within Monitoring.
- In the toolbar, select the Explorer tab.
- Select the Configuration tab.
- Expand the Select a metric menu, enter
Check passed
in the filter bar, and then use the submenus to select a specific resource type and metric:- In the Active resources menu, select the resource monitored by the uptime check.
- In the Active metric categories menu, select Uptime_check.
- In the Active metrics menu, select Check passed.
- Click Apply.
monitoring.googleapis.com/uptime_check/check_passed
. - Optional: To configure how the data is viewed, add filters and use the
Group By, Aggregator, and chart-type menus.
For this chart, use the following settings:
- Leave the Aggregator field at the default value of
none
. - For the Minimum alignment period field, select
10 m
. - Click Show advanced options, and for the Aligner field,
select
count true
.
- Leave the Aggregator field at the default value of
- Optional: Change the graph settings:
- For quota and other metrics that report one sample per day, set the time frame to at least one week and set the plot type to Stacked bar chart.
- For distribution valued metrics, set the plot type to Heatmap chart.
Chart uptime-check latency
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:
- In the Google Cloud console, go to the Metrics Explorer page within Monitoring.
- In the toolbar, select the Explorer tab.
- Select the Configuration tab.
- Expand the Select a metric menu, enter
Request latency
in the filter bar, and then use the submenus to select a specific resource type and metric:- In the Active resources menu, select the resource monitored by the uptime check.
- In the Active metric categories menu, select Uptime_check.
- In the Active metrics menu, select Request latency.
- Click Apply.
monitoring.googleapis.com/uptime_check/request_latency
. - Optional: To configure how the data is viewed, add filters and use the
Group By, Aggregator, and chart-type menus.
For this chart, use the following settings:
- Leave the Aggregator field at the default value of
none
. - For the Minimum alignment period field, select
10 m
. - Click Show advanced options, and for the Aligner field,
select
mean
.
- Leave the Aggregator field at the default value of
- Optional: Change the graph settings:
- For quota and other metrics that report one sample per day, set the time frame to at least one week and set the plot type to Stacked bar chart.
- For distribution valued metrics, set the plot type to Heatmap chart.