Huawei Cloud RDS MariaDB
Collect Metrics from Huawei Cloud RDS MariaDB
Configuration¶
Install Func¶
It is recommended to enable TrueWatch Integration - Extensions - DataFlux Func (Automata): All prerequisites are automatically installed, please proceed with the script installation.
If you want to deploy Func manually, refer to Manual Func Deployment
Install Script¶
Note: Please prepare the Huawei Cloud AK in advance (for simplicity, you can grant global read-only permissions
ReadOnlyAccess
)
-
Log in to the Func console, click 【Script Market】, enter the TrueWatch script market, and search for
ID: 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 a
Startup
script set and configure the corresponding startup script -
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¶
- Confirm in 「Manage / Automatic Trigger Configuration」 whether the corresponding task has the automatic trigger configuration, and check the task records and logs for any exceptions
- In TrueWatch, check if asset information exists in 「Infrastructure - Resource Catalog」
- In TrueWatch, check if there are corresponding monitoring data in 「Metrics」
Metrics¶
Configure Huawei Cloud RDS MariaDB Metrics, you can collect more metrics by 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 average number of I/O requests processed by the system per second for the current instance. | ≥ 0 counts/s | 1 minute |
rds004_bytes_in |
Network Input Throughput | This metric is used to measure the average input traffic from all network adapters of the object per second, in bytes/second. | ≥ 0 bytes/s | 1 minute |
rds005_bytes_out |
Network Output Throughput | This metric is used to measure the average output traffic from all network adapters of the object per second, 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 queries per second, 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 per second, including committed and rolled back transactions, 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 ratio. | 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 ratio. | 0-1 | 1 minute |
rds012_innodb_buf_dirty |
Buffer Pool Dirty Block Rate | This metric is used to measure the ratio of dirty data to used pages in the InnoDB buffer pool, in ratio. | 0-1 | 1 minute |
rds013_innodb_reads |
InnoDB Read Throughput | This metric is used to measure the average number of bytes read per second by InnoDB, 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 per second by InnoDB, 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 file reads per second by InnoDB, 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 file writes per second by InnoDB, 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 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 ratio. | 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 ratio. | 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 ratio. | 0-1 | 1 minute |
rds024_myisam_disk_write_count |
MyISAM Disk Write Frequency | This metric is used to measure the number of writes to disk for indexes per second, 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 reads from disk for indexes per second, 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 write requests to the buffer pool for indexes per second, 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 read requests from the buffer pool for indexes per second, 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 queries/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 queries/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 queries/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 queries/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 queries/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 queries/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 used disk size 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 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 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 measures 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 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 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 monitors 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 monitors 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 monitors 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 monitors the average wait time in semi-synchronous replication mode, in microseconds. | ≥ 0 μs | 1 minute |
rds173_replication_delay_avg |
Average Replication Delay | This metric measures 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 waits for free pages 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 measures the ratio of active connections to the maximum number of connections, in ratio. | 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 pages flushed from the innodb_buffer_pool 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 read requests from the innodb_buffer_pool 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 write requests to the innodb_buffer_pool per second, in counts/second. | ≥ 0 counts/s | 1 minute |
rds_innodb_lock_waits |
InnoDB Row Lock Waits | 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 Insufficient Flush Waits Per Second | This metric is used to measure the number of waits due to insufficient log buffer for flushing to disk per second, in counts/second. | ≥ 0 counts | 1 minute |
rds_innodb_os_log_written_rate |
Average Redo Log Write Size Per Second | This metric is used to measure the average size of redo log written 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 pages read by InnoDB 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 pages written by InnoDB per second, in pages/second. | ≥ 0 Pages/s | 1 minute |
rds_innodb_row_lock_current_waits |
Current Row Lock Waits | This metric is used to measure the number of current 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 wait time for row locks, 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 and standby instance information}]",
"related_instance" : "[]",
"backup_strategy" : "{backup strategy}",
"datastore" : {}
}
}
Note: The fields in
tags
andfields
may change with subsequent updatesTip 1: The value of
tags.instance_id
is the instance ID, used as a unique identifierTip 2: The following fields are JSON serialized strings
fields.private_ips
fields.public_ips
fields.volume
fields.nodes
fields.related_instance
fields.backup_strategy
Tip 3: The value of
type
can be "Single", "Ha", "Replica", or "Enterprise", corresponding to single instance, primary-standby instance, read-only instance, and distributed instance (Enterprise Edition) respectively.