Creating uptime charts

Using the Google Cloud Console

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

  1. In the Cloud Console, select Monitoring:

    Go to Monitoring

  2. Select Metrics Explorer.

  3. Ensure the Metric tab is selected.

  4. 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.
  5. Leave the Aggregator at the default value of none.

  6. Fill in the Show advanced options fields to count the number of responses from each location in a 10 minute period:

    • In the Aligner drop-down list, select count true.
    • In the Alignment Period field, enter 10 m.
    • Leave the Secondary Aggregator as none.

    See Aggregation for more information on these settings.

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 create a chart that displays the average latency for each checked location, do the following:

  1. In the Cloud Console, select Monitoring:

    Go to Monitoring

  2. Select Metrics Explorer.

  3. Ensure the Metric tab is selected.

  4. 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.

  5. Leave the Aggregator at the default value of none.

  6. Fill in the Show advanced options fields to average the latency values received from each location in a 10-minute period:

    • In the Aligner drop-down list, select mean.
    • In the Alignment Period field, enter 10 m.
    • Leave the Secondary Aggregator as none.

What's next

Using the Stackdriver Monitoring console

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

  1. In the Cloud Console, select Monitoring, and then select Resources > Metrics Explorer:

    Go to Monitoring

  2. Ensure the Metric tab is selected.

  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. Leave the Aggregator at the default value of none.

  5. Fill in the Show advanced options fields to count the number of responses from each location in a 10 minute period:

    • In the Aligner drop-down list, select count true.
    • In the Alignment Period field, enter 10 m.
    • Leave the Secondary Aggregator as none.

    See Aggregation for more information on these settings.

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 create a chart that displays the average latency for each checked location, do the following:

  1. In the Cloud Console, select Monitoring, and then select Resources > Metrics Explorer:

    Go to Monitoring

  2. Ensure the Metric tab is selected.

  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. Leave the Aggregator at the default value of none.

  5. Fill in the Show advanced options fields to average the latency values received from each location in a 10-minute period:

    • In the Aligner drop-down list, select mean.
    • In the Alignment Period field, enter 10 m.
    • Leave the Secondary Aggregator as none.

What's next

هل كانت هذه الصفحة مفيدة؟ يرجى تقييم أدائنا:

إرسال تعليقات حول...

Stackdriver Monitoring