Huawei Cloud GaussDB SYS.GAUSSDBV5¶
Huawei Cloud GaussDB SYS.GAUSSDBV5, provides data on CPU, memory, disk, deadlocks, SQL response time Metrics, etc.
Configuration¶
Install Func¶
It is recommended to activate Guance integration - extensions - DataFlux Func (Automata): all prerequisites are automatically installed, please proceed with the script installation.
If you want to deploy Func yourself, refer to Deploy Func Yourself
Install Script¶
Note: Please prepare the required Huawei Cloud AK in advance (for simplicity, you can directly grant the global read-only permission
Tenant Guest)
Automata Activation Script¶
- Log in to the Guance console.
- Click the 【Integration】 menu, select 【Cloud Account Management】.
- Click 【Add Cloud Account】, select 【Huawei Cloud】, and fill in the required information on the interface. If you have already configured the cloud account information before, you can skip this step.
- Click 【Test】, and click 【Save】 after the test is successful. 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
Huawei Cloud GaussDB SYS.GAUSSDBV5under theNot Installedlist, and click the 【Install】 button. The installation interface will pop up for installation.
Manual Activation Script¶
-
Log in to the Func console, click 【Script Market】, enter the Guance script market, and search for
integration_huaweicloud_gaussdb. -
Click 【Install】, and enter the corresponding parameters: Huawei Cloud AK, SK, and account name.
-
Click 【Deploy Startup Script】, the system will automatically create the
Startupscript set and configure the corresponding startup scripts. -
After activation, you can see the corresponding automatic trigger configuration in 「Management / Automatic Trigger Configuration」. Click 【Execute】 to execute it immediately without waiting for the scheduled time. After a while, you can check the execution task records and corresponding logs.
Verification¶
- In 「Management / Automatic Trigger Configuration」, confirm whether the corresponding task has the corresponding automatic trigger configuration, and you can also check the corresponding task records and logs to see if there are any exceptions.
- In Guance, check if there is asset information in 「Infrastructure / Custom」.
- In Guance, check if there is corresponding monitoring data in 「Metrics」.
Metrics¶
After configuring GaussDB SYS.GAUSSDBV5, the default Measurement is as follows. You can collect more Metrics through configuration Huawei Cloud Cloud Monitoring Metrics Details
| Metric ID | Metric Name | Metric Description | Display Object | Metric Unit | Measurement Object |
|---|---|---|---|---|---|
| rds005_instance_disk_used_size | Instance Disk Used Size | This Metric is used to count the used size of the instance data disk of the measurement object, and the value is real-time. | Instance | GB | Instance |
| rds006_instance_disk_total_size | Instance Disk Total Size | This Metric is used to count the total size of the instance data disk of the measurement object, and the value is real-time. | Instance | GB | Instance |
| rds007_instance_disk_usage | Instance Disk Usage Percentage | This Metric is used to count the usage rate of the instance data disk of the measurement object, and the value is real-time. | Instance | % | Instance |
| rds035_buffer_hit_ratio | Buffer Hit Rate | This Metric is used to count the buffer hit rate of the database. | Instance | % | Instance |
| rds036_deadlocks | Deadlock Count | This Metric is used to count the number of transaction deadlocks in the database, and the value is incremental for the time period. | Instance | Count | Instance |
| rds048_P80 | 80% SQL Response Time | This Metric is used to count the response time of 80% SQL in the database, and the value is real-time. | Instance | us | Instance |
| rds049_P95 | 95% SQL Response Time | This Metric is used to count the response time of 95% SQL in the database, and the value is real-time. | Instance | us | Instance |
| rds001_cpu_util | CPU Utilization | This Metric is used to count the CPU utilization of the measurement object. | Current Node | % | Node |
| rds002_mem_util | Memory Utilization | This Metric is used to count the memory utilization of the measurement object. | Current Node | % | Node |
| rds003_bytes_in | Data Write Volume | This Metric is used to count the number of bytes sent by the network corresponding to the VM of the measurement object, and the value is the average value of the time period. | Current Node | Byte/s | Node |
| rds004_bytes_out | Data Transmit Volume | This Metric is used to count the number of bytes received by the network corresponding to the VM of the measurement object, and the value is the average value of the time period. | Current Node | Byte/s | Node |
| rds014_iops | Data Disk Read/Write Count Per Second | This Metric is used to count the number of read/write operations per second on the data disk of the node of the measurement object, and the value is real-time. | Current Node | Count/s | Node |
| rds016_disk_write_throughput | Data Disk Write Throughput | This Metric is used to count the write throughput per second on the data disk of the node of the measurement object, and the value is real-time. | Current Node | Byte/s | Node |
| rds017_disk_read_throughput | Data Disk Read Throughput | This Metric is used to count the read throughput per second on the data disk of the node of the measurement object, and the value is real-time. | Current Node | Byte/s | Node |
| rds020_avg_disk_ms_per_write | Average Time Spent on Single Write on Data Disk | This Metric is used to count the average time spent on a single write operation on the data disk of the node of the measurement object, and the value is the average value of the time period. | Current Node | ms | Node |
| rds021_avg_disk_ms_per_read | Average Time Spent on Single Read on Data Disk | This Metric is used to count the average time spent on a single read operation on the data disk of the node of the measurement object, and the value is the average value of the time period. | Current Node | ms | Node |
| io_bandwidth_usage | Disk IO Bandwidth Usage Rate | The ratio of the current disk IO bandwidth to the maximum disk bandwidth. | Current Node | % | Node |
| iops_usage | IOPS Usage Rate | The ratio of the current IOPS to the maximum IOPS of the disk. | Current Node | % | Node |
| rds069_swap_total_size | Swap Memory Total Size | This Metric is used to describe the total size of the operating system swap memory, and the value is real-time. | Current Node | MB | Node |
| rds068_swap_used_ratio | Swap Memory Usage Rate | This Metric is used to describe the usage rate of the operating system swap memory, and the value is real-time. | Current Node | % | Node |
Objects¶
The collected GaussDB SYS.GAUSSDBV5 object data structure can be seen in 「Infrastructure - Custom」.
{
"measurement": "huaweicloud_gaussdb",
"tags": {
"RegionId" : "cn-north-4",
"db_user_name" : "root",
"name" : "2e10f990e139xxxxxx5fac6b59de7eein07",
"port" : "3306",
"project_id" : "c631f046252d4xxxxxxx5f253c62d48585",
"status" : "BUILD",
"type" : "Cluster",
"instance_id" : "1236a915462940xxxxxx879882200in02",
"instance_name" : "xxxxx-efa7"
},
"fields": {
"charge_info" : "{Billing type information, supports pay-as-you-go and subscription}",
"flavor_info" : "{Specification information}",
"volume" : "{Volume information}",
"create_time" : "2023-08-01T14:17:40+0800",
"update_time" : "2023-08-01T14:17:42+0800",
"public_ips" : "[\"192.168.0.223\"]",
"nodes" : "[]",
"message" : "{Instance JSON data}",
"time_zone" : "UTC+08:00"
}
}
Note: The fields in
tags,fieldsmay change with subsequent updates.Tip 1: The value of
tags.nameis the instance ID, which is used as the unique identifier.Tip 2:
fields.message,fields.charge_info,fields.flavor_info,fields.volume,fields.public_ips,fields.nodesare all JSON serialized strings.