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 5 minutes. To chart the number of passed checks for each location in a 20 minute window, do the following:

  1. In the Stackdriver Monitoring console, go to Resources > Metrics Explorer:

    Go to Metrics Explorer

  2. At the top of the page, scroll the header and click the Metric tab.

  3. Fill in the Find resource type and metric fields:

    1. Enter Check passed for the metric. In the drop-down list that appears, select monitoring.googleapis.com/uptime_check/check_passed.
    2. If the Resource type is not automatically populated for you, select the resource type that has the uptime checks you want to monitor.
  4. Fill in the Aggregation fields to count the number of responses from each location in a 20 minute period:

    • In the Aligner drop-down list, select count true.
    • In the Reducer drop-down list, select none.
    • In the Alignment Period field, enter 20 m.

    See Aggregation for more information on these settings.

Because the uptime check is configured to execute every 5 minutes, it is expected that every location would respond 4 times in the 20 minute alignment period. The following figure displays the status of an uptime check, configured as described previously, for a particular system. The figure shows that in this specific case, one location isn't responding as often as expected:

Uptime chart

Uptime check latency charts

You can use the Monitoring uptime_check/request_latency metric as a basis for uptime check latency charts. Your choices of the Aggregation 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 create a chart that displays the average latency for each checked location, do the following:

  1. In the Stackdriver Monitoring console, go to Resources > Metrics Explorer:

    Go to Metrics Explorer

  2. At the top of the page, scroll the header and click the Metric tab.

  3. Fill in the Find resource type and metric:

    1. Enter Request Latency for the metric. In the drop-down list, select the metric monitoring.googleapis.com/uptime_check/request_latency.

    2. If the Resource type is not automatically populated for you, select the resource type that has the uptime checks whose latency you want to monitor.

  4. Fill in the Aggregation fields to record the average latency in the alignment period for each time series:

    • In the Aligner drop-down list, select mean.
    • In the Reducer drop-down list, select none.
    • In the Alignment Period field, enter 20 m.

The following image is a sample uptime check latency chart:

Uptime latency chart

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

Stackdriver Monitoring