Huawei Cloud RDS MariaDB
Collect Huawei Cloud RDS MariaDB Metrics data
Configuration¶
Install Func¶
It is recommended to activate the Guance Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed. Please proceed with the script installation.
If you need to deploy Func manually, refer to Manual Func Deployment
Install Script¶
Note: Please prepare the Huawei Cloud AK in advance (for simplicity, you can directly grant the global read-only permission
Tenant Guest)
Automata Script Activation¶
- Log in to the Guance console.
- Click the [Integration] menu, then 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, ignore this step.
- Click [Test], and if the test is successful, click [Save]. If the test fails, please check the relevant configuration information and retest.
- Click [Cloud Account Management] in the list to view the added cloud account. Click the corresponding cloud account to enter the details page.
- Click the [Integration] button on the cloud account details page. Under the
Not Installedlist, findHuawei Cloud RDS MariaDB, and click the [Install] button. The installation interface will pop up for installation.
Manual Script Activation¶
-
Log in to the Func console, click [Script Market], and enter the Guance script market. Search for
integration_huaweicloud_rds_mariadb. -
Click [Install], then 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 script. -
After activation, you can see the corresponding automatic trigger configuration in [Management / Automatic Trigger Configuration]. Click [Execute] to immediately execute once without waiting for the scheduled time. Wait a moment, and you can view the execution task records and corresponding logs.
Verification¶
- In [Management / Automatic Trigger Configuration], confirm whether the corresponding task has the corresponding automatic trigger configuration. At the same time, you can check the corresponding task records and logs to see if there are any exceptions.
- In Guance, [Infrastructure - Resource Catalog], check if there is asset information.
- In Guance, [Metrics], check if there is corresponding monitoring data.
Metrics¶
Configure Huawei Cloud RDS MariaDB Metrics. You can collect more Metrics through configuration. Huawei Cloud RDS MariaDB Metrics Details
RDS for MariaDB instance performance monitoring Metrics are shown in the following table.
| Metric ID | Metric Name | Metric Description | Value Range | Monitoring Period (Raw Metric) |
|---|---|---|---|---|
rds001_cpu_util |
CPU Utilization | This Metric is used to measure the CPU utilization of the object, in percentage. | 0-100% | 1 minute |
rds002_mem_util |
Memory Utilization | This Metric is used to measure the memory utilization of the object. | 0~100% | 1 minute |
rds003_iops |
IOPS | This Metric is used to measure the number of I/O requests processed by the system per unit time (average). | ≥ 0 counts/s | 1 minute |
rds004_bytes_in |
Network Input Throughput | This Metric is used to measure the average input traffic per second from all network adapters of the object, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds005_bytes_out |
Network Output Throughput | This Metric is used to measure the average output traffic per second from all network adapters of the object, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds006_conn_count |
Total Database Connections | This Metric is used to measure the total number of connections attempting to connect to the MariaDB server, in counts. | ≥ 0 counts | 1 minute |
rds007_conn_active_count |
Current Active Connections | This Metric is used to measure the number of currently open connections, in counts. | ≥ 0 counts | 1 minute |
rds008_qps |
QPS | This Metric is used to measure the number of SQL query statements, including stored procedures, in queries/second. | ≥ 0 queries/s | 1 minute |
rds009_tps |
TPS | This Metric is used to measure the number of transactions executed, including commits and rollbacks, in transactions/second. | ≥ 0 transactions/s | 1 minute |
rds010_innodb_buf_usage |
Buffer Pool Utilization | This Metric is used to measure the ratio of free pages to the total number of pages in the InnoDB buffer pool, in percentage. | 0-1 | 1 minute |
rds011_innodb_buf_hit |
Buffer Pool Hit Rate | This Metric is used to measure the ratio of read hits to read requests, in percentage. | 0-1 | 1 minute |
rds012_innodb_buf_dirty |
Buffer Pool Dirty Block Rate | This Metric is used to measure the ratio of dirty data in the InnoDB buffer pool to the pages used in the InnoDB buffer pool, in percentage. | 0-1 | 1 minute |
rds013_innodb_reads |
InnoDB Read Throughput | This Metric is used to measure the average number of bytes read by Innodb per second, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds014_innodb_writes |
InnoDB Write Throughput | This Metric is used to measure the average number of bytes written by Innodb per second, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds015_innodb_read_count |
InnoDB File Read Frequency | This Metric is used to measure the average number of reads from files by Innodb per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds016_innodb_write_count |
InnoDB File Write Frequency | This Metric is used to measure the average number of writes to files by Innodb per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds017_innodb_log_write_req_count |
InnoDB Log Write Request Frequency | This Metric is used to measure the average number of log write requests per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds018_innodb_log_write_count |
InnoDB Log Physical Write Frequency | This Metric is used to measure the average number of physical writes to the log file per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds019_innodb_log_fsync_count |
InnoDB Log fsync() Write Frequency | This Metric is used to measure the average number of fsync() writes completed to the log file per second, in counts/second. | 0-1 | 1 minute |
rds020_temp_tbl_rate |
Temporary Table Creation Rate | This Metric is used to measure the number of temporary tables created on the disk per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds021_myisam_buf_usage |
Key Buffer Utilization | This Metric is used to measure the utilization of the MyISAM Key buffer, in percentage. | 0-1 | 1 minute |
rds022_myisam_buf_write_hit |
Key Buffer Write Hit Rate | This Metric is used to measure the write hit rate of the MyISAM Key buffer, in percentage. | 0-1 | 1 minute |
rds023_myisam_buf_read_hit |
Key Buffer Read Hit Rate | This Metric is used to measure the read hit rate of the MyISAM Key buffer, in percentage. | 0-1 | 1 minute |
rds024_myisam_disk_write_count |
MyISAM Disk Write Frequency | This Metric is used to measure the number of index writes to the disk, in counts/second. | ≥ 0 counts/s | 1 minute |
rds025_myisam_disk_read_count |
MyISAM Disk Read Frequency | This Metric is used to measure the number of index reads from the disk, in counts/second. | ≥ 0 counts/s | 1 minute |
rds026_myisam_buf_write_count |
MyISAM Buffer Pool Write Frequency | This Metric is used to measure the number of index write requests to the buffer pool, in counts/second. | ≥ 0 counts/s | 1 minute |
rds027_myisam_buf_read_count |
MyISAM Buffer Pool Read Frequency | This Metric is used to measure the number of index read requests from the buffer pool, in counts/second. | ≥ 0 counts/s | 1 minute |
rds028_comdml_del_count |
Delete Statement Execution Frequency | This Metric is used to measure the average number of Delete statements executed per second, in counts/second. | ≥ 0 queries/s | 1 minute |
rds029_comdml_ins_count |
Insert Statement Execution Frequency | This Metric is used to measure the average number of Insert statements executed per second, in counts/second. | ≥ 0 queries/s | 1 minute |
rds030_comdml_ins_sel_count |
Insert_Select Statement Execution Frequency | This Metric is used to measure the average number of Insert_Select statements executed per second, in counts/second. | ≥ 0 queries/s | 1 minute |
rds031_comdml_rep_count |
Replace Statement Execution Frequency | This Metric is used to measure the average number of Replace statements executed per second, in counts/second. | ≥ 0 queries/s | 1 minute |
rds032_comdml_rep_sel_count |
Replace_Selection Statement Execution Frequency | This Metric is used to measure the average number of Replace_Selection statements executed per second, in counts/second. | ≥ 0 queries/s | 1 minute |
rds033_comdml_sel_count |
Select Statement Execution Frequency | This Metric is used to measure the average number of Select statements executed per second. | ≥ 0 queries/s | 1 minute |
rds034_comdml_upd_count |
Update Statement Execution Frequency | This Metric is used to measure the average number of Update statements executed per second, in counts/second. | ≥ 0 queries/s | 1 minute |
rds035_innodb_del_row_count |
Row Deletion Rate | This Metric is used to measure the average number of rows deleted from InnoDB tables per second, in rows/second. | ≥ 0 rows/s | 1 minute |
rds036_innodb_ins_row_count |
Row Insertion Rate | This Metric is used to measure the average number of rows inserted into InnoDB tables per second, in rows/second | ≥ 0 rows/s | 1 minute |
rds037_innodb_read_row_count |
Row Read Rate | This Metric is used to measure the average number of rows read from InnoDB tables per second, in rows/second. | ≥ 0 rows/s | 1 minute |
rds038_innodb_upd_row_count |
Row Update Rate | This Metric is used to measure the average number of rows updated in InnoDB tables per second, in rows/second. | ≥ 0 rows/s | 1 minute |
rds037_innodb_read_row_count |
Row Read Rate | This Metric is used to measure the average number of rows read from InnoDB tables per second, in rows/second. | ≥ 0 queries/s | 1 minute |
rds039_disk_util |
Disk Utilization | This Metric is used to measure the disk utilization of the object, in percentage. | 0-100% | 1 minute |
rds047_disk_total_size |
Total Disk Size | This Metric is used to measure the total disk size of the object. | 40GB~4000GB | 1 minute |
rds048_disk_used_size |
Disk Usage | This Metric is used to measure the disk usage of the object. | 0GB~4000GB | 1 minute |
rds049_disk_read_throughput |
Disk Read Throughput | This Metric is used to measure the number of bytes read from the disk per second. | ≥ 0 bytes/s | 1 minute |
rds050_disk_write_throughput |
Disk Write Throughput | This Metric is used to measure the number of bytes written to the disk per second. | ≥ 0 bytes/s | 1 minute |
rds072_conn_usage |
Connection Utilization | This Metric is used to measure the average number of rows read from InnoDB tables per second, in rows/second. | 0-100% | 1 minute |
rds073_replication_delay |
Real-time Replication Delay | This Metric is the real-time delay between the standby or read-only instance and the primary instance, corresponding to seconds_behind_master. This value is real-time. | ≥ 0 s | 1 minute |
rds074_slow_queries |
Slow Query Count | This Metric is used to display the number of slow queries generated by MariaDB per minute. | ≥ 0 | 1 minute |
rds075_avg_disk_ms_per_read |
Average Disk Read Time | This Metric is used to measure the average time taken to read from the disk over a period of time. | ≥ 0 ms | 1 minute |
rds076_avg_disk_ms_per_write |
Average Disk Write Time | This Metric is used to measure the average time taken to write to the disk over a period of time. | ≥ 0 ms | 1 minute |
rds077_vma |
VMA Count | This Metric is used to monitor the virtual memory area size of the RDS process | ≥ 0 counts | 1 minute |
rds078_threads |
Thread Count in Process | This Metric is used to monitor the number of threads in the RDS process, in counts. | ≥ 0 counts | 1 minute |
rds079_vm_hwm |
Peak Physical Memory Usage of Process | This Metric is used to monitor the peak physical memory usage of the RDS process, in KB. | ≥ 0 KB | 1 minute |
rds080_vm_peak |
Peak Virtual Memory Usage of Process | This Metric is used to monitor the peak virtual memory usage of the RDS process, in KB. | ≥ 0 KB | 1 minute |
rds082_semi_sync_tx_avg_wait_time |
Average Transaction Wait Time | This Metric is used to monitor the average wait time in semi-synchronous replication mode, in microseconds. | ≥ 0 μs | 1 minute |
rds173_replication_delay_avg |
Average Replication Delay | This Metric is the average delay between the standby or read-only instance and the primary instance, corresponding to seconds_behind_master | ≥ 0 s | 1 minute |
rds_buffer_pool_wait_free |
Buffer Pool Free Page Wait Count | This Metric is used to measure the number of free page waits in the InnoDB buffer pool. | ≥ 0 ms | 1 minute |
rds_bytes_recv_rate |
Database Bytes Received Per Second | This Metric is used to measure the number of bytes received by the database per second, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds_bytes_sent_rate |
Database Bytes Sent Per Second | This Metric is used to measure the number of bytes sent by the database per second, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds_conn_active_usage |
Active Connection Utilization | This Metric is used to measure the ratio of active connections to the maximum number of connections, in percentage. | 0-100% | 1 minute |
rds_created_tmp_tables_rate |
Temporary Tables Created Per Second | This Metric is used to measure the number of temporary tables created per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds_innodb_buffer_pool_pages_flushed_rate |
InnoDB Buffer Pool Pages Flushed Per Second | This Metric is used to measure the number of InnoDB buffer pool pages flushed per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds_innodb_buffer_pool_read_requests_rate |
InnoDB Buffer Pool Read Requests Per Second | This Metric is used to measure the number of InnoDB buffer pool read requests per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds_innodb_buffer_pool_write_requests_rate |
InnoDB Buffer Pool Write Requests Per Second | This Metric is used to measure the number of InnoDB buffer pool write requests per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds_innodb_lock_waits |
InnoDB Row Lock Wait Count | This Metric is used to measure the number of InnoDB transactions waiting for row locks, in counts. | ≥ 0 counts | 1 minute |
rds_innodb_log_waits_count |
Log Wait Count | This Metric is used to measure the number of log waits, in counts. | ≥ 0 counts | 1 minute |
rds_innodb_log_waits_rate |
Log Buffer Flush Wait Count Due to Insufficient Log Buffer | This Metric is used to measure the number of waits due to insufficient log buffer causing flushes to disk, in counts/second. | ≥ 0 counts | 1 minute |
rds_innodb_os_log_written_rate |
Average Redo Log Written Per Second | This Metric is used to measure the average number of bytes written to the redo log per second, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds_innodb_pages_read_rate |
InnoDB Pages Read Per Second | This Metric is used to measure the average number of InnoDB pages read per second, in pages/second. | ≥ 0 Pages/s | 1 minute |
rds_innodb_pages_written_rate |
InnoDB Pages Written Per Second | This Metric is used to measure the average number of InnoDB pages written per second, in pages/second. | ≥ 0 Pages/s | 1 minute |
rds_innodb_row_lock_current_waits |
Current Row Lock Wait Count | This Metric is used to measure the current number of row lock waits in InnoDB, in counts. | ≥ 0 counts | 1 minute |
rds_innodb_row_lock_time_avg |
Average Row Lock Wait Time | This Metric is used to measure the average row lock wait time, in milliseconds. | ≥ 0 ms | 1 minute |
rds_wait_thread_count |
Wait Thread Count | This Metric is used to measure the number of waiting threads, in counts. | ≥ 0 counts | 1 minute |
Object¶
The collected Huawei Cloud RDS MariaDB object data structure can be viewed in [Infrastructure - Resource Catalog]
{
"measurement": "huaweicloud_rds_mariadb",
"tags": {
"RegionId" : "cn-south-1",
"project_id" : "c631f046252dxxxxxxxf253c62d48585",
"enterprise_project_id" : "o78hhbss-xxxx-xxxx-xxxx-cba3d38cf2f9",
"instance_id" : "1d0c91561f4644dxxxxxx68304b0520din01",
"instance_name" : "rds-xxxx",
"status" : "ACTIVE",
"type" : "Ha",
"engine" : "MariaDB"
},
"fields": {
"security_group_id" : "9e5bd45e-0564-445f-xxxx-2c8954e2d99c",
"security_group_id" : "9e5bd45e-0564-445f-xxxx-2c8954e2d99c",
"time_zone" : "China Standard Time",
"enable_ssl" : "True",
"charge_info.charge_mode": "postPaid",
"engine_version" : "10.5",
"created_time" : "2024-11-12T06:31:07+0000",
"updated_time" : "2024-11-12T07:45:54+0000",
"private_ips" : "[\"192.x.x.35\"]",
"public_ips" : "[]",
"datastore" : "{Instance JSON data}",
"cpu" : "4",
"mem" : "8",
"volume" : "{volume information}",
"nodes" : "[{Primary-Secondary instance information}]",
"related_instance" : "[]",
"backup_strategy" : "{Backup strategy}",
"datastore" : {}
}
}
Note: The fields in
tagsandfieldsmay change with subsequent updates.Tip 1: The value of
tags.instance_idis the instance ID, which serves as a unique identifier.Tip 2: The following fields are JSON serialized strings.
fields.private_ipsfields.public_ipsfields.volumefields.nodesfields.related_instancefields.backup_strategyTip 3: The
typefield can be "Single", "Ha", "Replica", or "Enterprise", corresponding to single instance, primary-secondary instance, read-only instance, and distributed instance (Enterprise Edition) respectively.