Creating uptime charts

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 Stackdriver Monitoring uptime_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 view the metrics for a monitored resource using Metrics Explorer, do the following:

  1. In the Google Cloud Console, go to Monitoring or use the following button:
    Go to Monitoring
  2. If Metrics Explorer is shown in the navigation pane, click Metrics Explorer. Otherwise, select Resources and then select Metrics Explorer.
  3. Ensure Metric is the selected tab.
  4. Click in the box labeled Find resource type and metric, and then select from the menu or enter the name for the resource and metric. Use the following information to complete the fields for this text box:
    1. Enter check_passed. After this entry, the metric Check passed is displayed.
    2. If the Resource isn't automatically populated for you, select the resource type that has the uptime check you want to monitor.
    The fully qualified name for this monitored resource is monitoring.googleapis.com/uptime_check/check_passed.
  5. Use the Filter, Group By, and Aggregation menus to modify how the data is displayed. For this uptime latency chart, use the following settings:
    1. Leave the Aggregator field at the defalt value of none.
    2. Click Show advanced options and do the following:
      • For the Aligner field, select count true.
      • For the Alignment Period field, select 10 m.
      • Leave the Alignment Period as none.
    For more information, see Selecting metrics - additional configuration.
Because the uptime check is configured to execute every minute, it is expected that every location would respond approximately 10 times in a 10-minute alignment period.

Uptime check latency charts

You can use the Monitoring uptime_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 view the metrics for a monitored resource using Metrics Explorer, do the following:

  1. In the Google Cloud Console, go to Monitoring or use the following button:
    Go to Monitoring
  2. If Metrics Explorer is shown in the navigation pane, click Metrics Explorer. Otherwise, select Resources and then select Metrics Explorer.
  3. Ensure Metric is the selected tab.
  4. Click in the box labeled Find resource type and metric, and then select from the menu or enter the name for the resource and metric. Use the following information to complete the fields for this text box:
    1. Enter uptime_check/request_latency. After this entry, the metric Check passed is displayed.
    2. If the Resource isn't automatically populated for you, select the resource type that has the uptime check you want to monitor.
    The fully qualified name for this monitored resource is monitoring.googleapis.com/uptime_check/request_latency.
  5. Use the Filter, Group By, and Aggregation menus to modify how the data is displayed. For this uptime chart, use the following settings:
    1. Leave the Aggregator field at the defalt value of none.
    2. Click Show advanced options and do the following:
      • For the Aligner field, select mean.
      • For the Alignment Period field, select 10 m.
      • Leave the Alignment Period as none.
    For more information, see Selecting metrics - additional configuration.

What's next