本文介绍云原生数据库PolarDB的性能指标监控。

PolarDB MySQL版性能指标监控项

性能指标监控项数据类型单位描述
PolarDBDiskUsagemean_data_sizedoubleMB数据占用的存储量。
mean_log_sizedoubleMB日志占用的存储量。
mean_sys_dir_sizedoubleMB系统占用的存储量。
mean_tmp_dir_sizedoubleMB临时文件占用的存储量。
mean_redolog_sizedoubleMBRedolog占用的存储量。
mean_binlog_sizedoubleMBBinlog占用的存储量。
mean_other_log_sizedoubleMB其他日志大小。
mean_undolog_sizedoubleMBUndolog使用量。
PolarDBQPSTPSmean_qpsdouble每秒钟请求数。
mean_tpsdouble每秒钟事务数。
mean_mpsdouble每秒钟操作数。
PolarDBCPUcpu_ratiodouble百分比CPU使用率(%)。
PolarDBMemorymem_ratiodouble百分比内存使用率(%)。
PolarDBConnectionsmean_active_sessiondouble活跃连接数。
thread_pool_running_threadsdouble线程池中正在运行的线程数。
mean_total_sessiondouble当前总连接数。
tp_thread_countdouble线程池中的线程总数量。
PolarDBNetworkTrafficmean_input_trafficdoubleKB/s每秒输入流量。
mean_output_trafficdoubleKB/s每秒输出流量。
PolarDBInnoDBBufferRatiomean_innodb_buffer_dirty_ratiodouble百分比缓冲池脏块率(%)。
mean_innodb_buffer_read_hitdouble百分比缓冲池的读命中率(%)。
mean_innodb_buffer_use_ratiodouble百分比缓冲池的利用率(%)。
PolarDBInnoDBDataReadWritemean_innodb_data_readdoubleByte每秒从存储引擎读取数据量。
mean_innodb_data_writtendoubleByte每秒往存储引擎写入数据量。
PolarDBInnoDBBufferRequestsmean_innodb_buffer_pool_read_requestsdouble每秒缓冲池读次数。
mean_innodb_buffer_pool_write_requestsdouble每秒缓冲池写次数。
PolarDBInnoDBLogWritesmean_innodb_log_write_requestsdouble每秒日志物理写次数。
mean_innodb_os_log_fsyncsdouble每秒同步次数。
PolarDBCreatedTempDiskTablemean_created_tmp_disk_tablesdouble每秒创建临时表个数。
PolarDBCOMDMLmean_com_deletedouble每秒DELETE数。
mean_com_delete_multidouble每秒Multi-DELETE数。
mean_com_insertdouble每秒INSERT数。
mean_com_insert_selectdouble每秒INSERT_SELECT数。
mean_com_replacedouble每秒REPLACE数。
mean_com_replace_selectdouble每秒REPLACE_SELECT数。
mean_com_selectdouble每秒SELECT数。
mean_com_updatedouble每秒UPDATE数。
mean_com_update_multidouble每秒Multi-UPDATE数。
PolarDBRowDMLmean_innodb_rows_deleteddouble每秒删除的行数。
mean_innodb_rows_inserteddouble每秒插入的行数。
mean_innodb_rows_readdouble每秒读取的行数。
mean_innodb_rows_updateddouble每秒更新的行数。
PolarDBIOSTATmean_iops_rdouble次/秒读IOPS。
mean_iops_wdouble次/秒写IOPS。
mean_iopsdouble次/秒总IOPS。
mean_io_throughput_rdoubleMB读I/O吞吐量。
mean_io_throughput_wdoubleMB写I/O吞吐量。
mean_io_throughputdoubleMB总I/O吞吐量。
PolarDBReplicaLagmean_replication_delaydouble复制延迟。

性能指标监控项

性能指标监控项数据类型单位描述
PolarDBConnectionsmean_total_sessiondouble当前连接总数。
mean_active_sessiondouble当前活跃连接数。
mean_waiting_connectiondouble当前处于等待状态的连接数。
mean_idle_connectiondouble当前处于空闲会话状态的连接数。
PolarDBRowDMLmean_tup_returned_deltadouble每秒全表扫描记录数。
mean_tup_fetched_deltadouble每秒索引扫描回表记录数。
mean_tup_inserted_deltadouble每秒INSERT记录数。
mean_tup_updated_deltadouble每秒UPDATE记录数。
mean_tup_deleted_deltadouble每秒DELETE记录数。
PolarDBTransactionmean_active_transactionsdouble活跃事务数。
mean_waiting_transactionsdouble等待事务数。
mean_idle_transactionsdouble空闲事务数。
mean_long_idle_transactionsdouble空闲长事务数量。
mean_long_transactionsdouble长事务数量。
mean_two_pc_transactionsdouble两阶段事务数量。
mean_long_two_pc_transactionsdouble两阶段长事务数量。
PolarDBQPSTPSmean_tpsdouble每秒钟事务数。
mean_commits_deltadouble每秒提交事务数。
mean_rollbacks_deltadouble每秒回滚事务数。
mean_deadlocks_deltadouble每秒死锁数量。
PolarDBBuffermean_blks_read_deltadouble每秒块读取数。
mean_blks_hit_deltadouble每秒块命中数。
mean_hit_ratiodouble百分比块命中率。
mean_buffers_cleandouble累积Checkpoint后端写入缓存数。
mean_buffers_backenddouble累积Backend缓存写入数。
mean_buffers_backend_fsyncdouble累积Backend fsync数。
mean_buffers_allocdouble累积缓存分配数。
PolarDBVacuummean_db_agedoublexids当前事务ID和最早不能回收的事务ID之间的差值。
PolarDBTempmean_temp_filesdouble每秒临时文件生成个数。
mean_temp_bytesdoubleBytes每秒临时文件数据生成数。
PolarDBCPUcpu_ratiodouble百分比CPU使用率。
cpu_user_ratiodouble百分比用户态CPU使用率。
cpu_sys_ratiodouble百分比系统态CPU使用率。
PolarDBMemorymem_ratiodouble百分比内存使用率。
PolarDBDiskUsagemean_ins_total_sizedoubleMBpolarstore实例空间使用量。
mean_data_sizedoubleMBpolarstore用户数据总使用量。
mean_wal_sizedoubleMBpolarstore wal日志空间使用量。
mean_tmp_sizedoubleMB临时空间使用量。
mean_log_sizedoubleMB本地日志使用量。
PolarDBIOSTATmean_iops_rdouble次/秒读IOPS。
mean_iops_wdouble次/秒写IOPS。
mean_iopsdouble次/秒总IOPS。
mean_io_throughput_rdoubleMB读I/O吞吐量。
mean_io_throughput_wdoubleMB写I/O吞吐量。
mean_io_throughputdoubleMB总I/O吞吐量。

PolarProxy性能指标监控项

性能指标监控项数据类型单位描述
PolarProxy_CpuUsagedocker_container_cpudouble百分比PolarDB代理层(PolarProxy)的CPU使用率。
PolarProxy_Cpsservice_connections_psdouble个/秒PolarDB代理层(PolarProxy)的每秒新增连接数。
PolarProxy_CurrentConnsservice_current_connectionsdoublePolarDB代理层(PolarProxy)的当前连接数。
PolarProxy_UpFlowsservice_upstream_netflowdoubleKB/sPolarDB代理层(PolarProxy)的每秒输入流量。
PolarProxy_DownFlowsservice_downstream_netflowdoubleKB/sPolarDB代理层(PolarProxy)的每秒输出流量。
PolarProxy_Qpsservice_queriesdouble次/秒PolarDB代理层(PolarProxy)的每秒请求数。