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

PolarDB PostgreSQL版(兼容Oracle)性能指标监控项

性能指标监控项数据类型单位描述
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_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)的每秒请求数。