All Products
Search
Document Center

:CloudMonitor

更新時間:Jun 06, 2024

This topic describes how to view the monitoring data of file gateways and iSCSI gateways in the CloudMonitor console.

Prerequisites

A gateway is created in the Cloud Storage Gateway (CSG) console. For more information, see Manage a file gateway in the CSG console.

Background information

Note

The 1.3.0 and later versions of gateways deployed in the cloud can be monitored from the CloudMonitor console.

  • The file gateway metrics in the CloudMonitor console include gateway cpu usage user, file gateway share cache usage, gateway memory usage, file gateway share meta data usage, file gateway share read write rate, file gateway share upload queue length (available to CSG 1.9.2 and later only), file gateway share throttling status, file gateway share upload rate, and file gateway NFS connection usage.

    Important

    Of all available metrics, the following ones are especially important: file gateway share meta data usage, file gateway share upload queue length, and file gateway share throttling status. We recommend that you create alert rules for the three metrics. For more information, see Create an alert rule.

    • File gateway share meta data usage: We recommend that you configure alert rules for this metric based on the cache disk size.

      • If the cache disk size is less than or equal to 100 GB, the recommended alert trigger is when per-share metadata usage exceeds 80%.

      • If the cache is greater than or equal to 500 GB, the recommended alert trigger is when per-share metadata usage exceeds 90%.

      For more information, see Insufficient space for metadata cache

    • File gateway share upload queue length: The recommended alert trigger condition is when the upload length is greater than 10,000. For more information, see Upload queue length accumulation

    • File gateway share throttling status: The recommended alert trigger condition is when the throttling status of a share is 1. For more information, see Throttling.

  • The CloudMonitor metrics for iSCSI gateways include CPU usage, memory usage, and volume cache usage.

View monitoring information

  1. Log on to the CloudMonitor console.

  2. In the left-side navigation pane, choose Dashboard > Cloud Product Monitoring.

  3. On the Cloud Service Monitoring Dashboard page, select Cloud Storage Gateway (CSG) from the first drop-down list in the upper-left corner, the region of the region from the second, and the gateway ID from the third.

Create an alert rule

  1. On the Cloud Service Monitoring Dashboards tab, click Create Alert Rule.

  2. In the Create Alert Rule panel, configure the following parameters and click Confirm.

    Parameter

    Description

    Product

    Select Cloud Storage Gateway.

    Resource Range

    • All Resources: monitors all resources.

    • Application Groups: monitors the specified group.

    • Instances: monitors a gateway.

    Associated Resources

    Select the gateway that you want to monitor.

    Rule Description

    Specify the content of the alert rule.

    Add Rule

    Click Add Rule to add a rule. For more information, see Add a rule.

    Mute For

    Select a proper mute period.

    Effective Period

    Select a period of time in which the rule remains effective.

    Alert Contact Group

    Select an alert contact group.

    Tag

    Specify a tag name and a tag value.

    Alert Callback

    Specify an alert callback URL.

    Note

    The callback URL must start with http:// and the host component of the URL cannot be an IP address.

    Table 1. Add a rule

    Parameter

    Description

    Alert Rule

    Specify a subrule name.

    Metric Type

    Select a metric type. Valid values:

    • Single Metric: Select a metric and set the threshold and alert level for the metric.

    • Multiple Metrics: Select an alert level and specify alert conditions for two or more metrics.

    • Dynamic Threshold: For more information about dynamic thresholds, see Overview and Create dynamic threshold-triggered alert rules.

      Note

      The dynamic threshold feature is in invitational preview. To use the feature, you must submit a ticket.

    Metric

    Select one or more metrics that you want to monitor. Valid values:

    • gateway cpu usage user

    • gateway memory usage

    • file gateway share cache usage

    • file gateway share meta data usage

    • file gateway NFS connection usage

    • file gateway share read write rate

    • file gateway share throttling status

    • upload queue

    • file gateway share upload rate

    • block gateway volume cache usage

    Select Dimension

    Select the share that you want to monitor. If you do not select a share, all shares of the gateway are monitored.

    Comparison

    The comparison type. When the metric value and the threshold meet the comparison condition, the alert is triggered. Valid values:

    • >=: The alert is triggered if the metric value is greater than or equal to the threshold.

    • >: The alert is triggered if the metric value is greater than the threshold.

    • <=: The alert is triggered if the metric value is less than or equal to the threshold.

    • <: The alert is triggered if the metric value is less than the threshold.

    • =: The alert is triggered if the metric value is equal to the threshold.

    • !=: The alert is triggered if the metric value is not equal to the threshold.

    • Compared with Yesterday Rise: The alert is triggered if the metric value for a particular period of time is greater than the metric value for the same period of time yesterday.

    • Compared with Yesterday Decline: The alert is triggered if the metric value for a particular period of time is less than the metric value for the same period of time yesterday.

    • Compared with Last Week Rise: The alert is triggered if the metric value for a particular period of time is greater than the metric value for the same period of time last week.

    • Compared with Last Week Decline: The alert is triggered if the metric value for a particular period of time is less than the metric value for the same period of time last week.

    • Compared with Last Period Rise: The alert is triggered if the metric value increases compared with the last period of time.

    • Compared with Last Period Decline: The alert is triggered if the metric value declines compared with the last period of time.

    Threshold and Alert Level

    Configure the thresholds and alert levels.

Alert rule example

This section describes how to create an alert rule that sends an alert if the metadata usage is greater than or equal to 90%.

  1. On the Cloud Service Monitoring Dashboards tab, click Create Alert Rule.

  2. In the Create Alert Rule panel, select Cloud Storage Gateway for Product.

  3. For Resource Range, select Instances.

  4. For Associated Resources, select the gateway that you want to monitor.

  5. Click Add Rule to go to the Configure Rule Description panel.

  6. In the Configure Rule Description panel, perform the following steps: In the Alert Rule field, specify a name for the subrule. For Metric Type, select Single Metric. For Metric, select file gateway share meta data usage. In the Select Dimension section, select the share that you want to monitor from the share drop-down list. In the Threshold and Alert Level section, select Critical as the alert level, and enter 90 in the Threshold text bod. Click OK to return to the Create Alert Rule panel.

  7. In the Create Alert Rule panel, select an alert contact group from the Alert Contact Group drop-down list and click Confirm.

What to do next

You can select or specify a time granularity to filter monitoring data.

Category

Description

Built-in time granularities

Built-in time granularities include 1 hour, 3 hours, 6 hours, 12 hours, 1 day, 3 days, 7 days, and 14 days.

Custom time granularity

CloudMonitor allows you to query the monitoring data in the last 30 days at the time granularity of minutes.