Alibaba Cloud File Storage NAS
Collect monitoring data from Alibaba Cloud File Storage NAS
Configuration¶
Install Func¶
It is recommended to activate Guance Integration - Extensions - DataFlux Func (Automata)
If you need to deploy Func yourself, refer to Self-deploying Func
Activate Script¶
Note: Please prepare the Alibaba Cloud AK that meets the requirements in advance (for simplicity, you can directly grant the global read-only permission
ReadOnlyAccess)
Automata Activation Script¶
- Log in to the Guance console
- Click the 【Integration】 menu and select 【Cloud Account Management】
- Click 【Add Cloud Account】, select 【Alibaba Cloud】, and fill in the required information on the interface. If you have already configured the cloud account information before, ignore this step
- Click 【Test】, and if the test is successful, click 【Save】. If the test fails, please check if the relevant configuration information is correct and test again
- Click 【Cloud Account Management】, and you can see the added cloud account in the list. Click the corresponding cloud account to enter the details page
- Click the 【Integration】 button on the cloud account details page, find
Alibaba Cloud File Storage NASunder theNot Installedlist, and click the 【Install】 button to pop up the installation interface for installation.
Manual Activation Script¶
-
Log in to the Func console, click on [Script Market], and enter the Guance Script Market. Search for:
integration_alibabacloud_nas -
Click [Install], then enter the corresponding parameters: Alibaba Cloud AK ID, AK Secret, and account name.
-
Click [Deploy Startup Script], the system will automatically create the
Startupscript set and configure the corresponding startup scripts. -
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¶
- 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.
- In Guance, check if asset information exists in "Infrastructure / Custom".
- In Guance, 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"
}
}