Skip to content

Alibaba Cloud File Storage NAS

Collect monitoring data from Alibaba Cloud File Storage NAS

Configuration

Install Func

It is recommended to activate TrueWatch Integration - Extensions - DataFlux Func (Automata)

If you need to deploy Func yourself, refer to Self-deploying Func

Install Script

Note: Please prepare the required Alibaba Cloud AK in advance (for simplicity, you can grant the global read-only permission ReadOnlyAccess)

  1. Log in to the Func console, click on [Script Market], and enter the TrueWatch Script Market. Search for: integration_alibabacloud_nas

  2. Click [Install], then enter the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.

  3. Click [Deploy Startup Script], the system will automatically create the Startup script set and configure the corresponding startup scripts.

  4. After enabling, you can see the corresponding automatic trigger configuration in "Manage / Automatic Trigger Configuration". Click [Execute] to immediately execute it once without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.

Verification

  1. In "Manage / Automatic Trigger Configuration", confirm whether the corresponding task has the automatic trigger configuration. At the same time, you can check the corresponding task records and logs to see if there are any anomalies.
  2. In TrueWatch, check if asset information exists in "Infrastructure / Custom".
  3. In TrueWatch, check if there is corresponding monitoring data in "Metrics".

Metrics

The metrics for File Storage NAS are under the aliyun_acs_nas Measurement. Below are the details of the metrics.

MetricName Metric Type MetricDescribe Dimensions Statistics Unit
AlignedSize capacity General NAS data volume (excluding low-frequency, archive media) userId,fileSystemId Value B
ExtremeCapacity capacity Extreme NAS total storage space userId,fileSystemId Value B
ExtremeCapacityUsed capacity Extreme NAS used data volume userId,fileSystemId Value B
ExtremeInodeLimit capacity Extreme NAS maximum file count userId,fileSystemId Value count
ExtremeInodeUsed capacity Extreme NAS used file count userId,fileSystemId Value count
FileCount capacity File count userId,fileSystemId Value count
IopsRead volume Read IOPS userId,fileSystemId Value IOPS
IopsWrite volume Write IOPS userId,fileSystemId Value IOPS
LatencyRead volume Read latency userId,fileSystemId Value ms
LatencyWrite volume Write latency userId,fileSystemId Value ms
OfflineReadQuantity capacity Low-frequency media read traffic userId,fileSystemId Value B
OfflineWriteQuantity capacity Low-frequency media write traffic userId,fileSystemId Value B
QpsMeta volume Metadata QPS userId,fileSystemId Value IOPS
SecondaryAlignedSize capacity Low-frequency media data volume userId,fileSystemId Value B
ThruputRead volume Read throughput userId,fileSystemId Value bytes/s
ThruputWrite volume Write throughput userId,fileSystemId Value bytes/s

Object

The collected Alibaba Cloud File System NAS object data structure can be seen in "Infrastructure - Custom"

{
  "measurement": "aliyun_nas",
  "tags": {
    "FileSystemId"       : "i-0ec6548xxx",
    "RegionId"           : "cn-hangzhou",
  },
  "fields": {
    "CreateTime"         : "2023-02-14T18:07:18CST",
    "ExpiredTime"        : "2023-02-14T18:07:18CST",
    "Capacity"           : "10485760",
    "EncryptType"        : "0",
    "ChargeType"         : "PayAsYouGo",
    "FileSystemType"     : "standard"
  }
}