本文介绍云原生数据库PolarDB的性能指标监控。
PolarDB MySQL版性能指标监控项
性能指标 | 监控项 | 数据类型 | 单位 | 描述 |
PolarDBDiskUsage | mean_data_size | double | MB | 数据占用的存储量。 |
mean_log_size | double | MB | 日志占用的存储量。 | |
mean_sys_dir_size | double | MB | 系统占用的存储量。 | |
mean_tmp_dir_size | double | MB | 临时文件占用的存储量。 | |
mean_redolog_size | double | MB | Redolog占用的存储量。 | |
mean_binlog_size | double | MB | Binlog占用的存储量。 | |
mean_other_log_size | double | MB | 其他日志大小。 | |
mean_undolog_size | double | MB | Undolog使用量。 | |
PolarDBQPSTPS | mean_qps | double | 次 | 每秒钟请求数。 |
mean_tps | double | 次 | 每秒钟事务数。 | |
mean_mps | double | 次 | 每秒钟操作数。 | |
PolarDBCPU | cpu_ratio | double | 百分比 | CPU使用率(%)。 |
PolarDBMemory | mem_ratio | double | 百分比 | 内存使用率(%)。 |
PolarDBConnections | mean_active_session | double | 个 | 活跃连接数。 |
thread_pool_running_threads | double | 个 | 线程池中正在运行的线程数。 | |
mean_total_session | double | 个 | 当前总连接数。 | |
tp_thread_count | double | 个 | 线程池中的线程总数量。 | |
PolarDBNetworkTraffic | mean_input_traffic | double | KB/s | 每秒输入流量。 |
mean_output_traffic | double | KB/s | 每秒输出流量。 | |
PolarDBInnoDBBufferRatio | mean_innodb_buffer_dirty_ratio | double | 百分比 | 缓冲池脏块率(%)。 |
mean_innodb_buffer_read_hit | double | 百分比 | 缓冲池的读命中率(%)。 | |
mean_innodb_buffer_use_ratio | double | 百分比 | 缓冲池的利用率(%)。 | |
PolarDBInnoDBDataReadWrite | mean_innodb_data_read | double | Byte | 每秒从存储引擎读取数据量。 |
mean_innodb_data_written | double | Byte | 每秒往存储引擎写入数据量。 | |
PolarDBInnoDBBufferRequests | mean_innodb_buffer_pool_read_requests | double | 次 | 每秒缓冲池读次数。 |
mean_innodb_buffer_pool_write_requests | double | 次 | 每秒缓冲池写次数。 | |
PolarDBInnoDBLogWrites | mean_innodb_log_write_requests | double | 次 | 每秒日志物理写次数。 |
mean_innodb_os_log_fsyncs | double | 次 | 每秒同步次数。 | |
PolarDBCreatedTempDiskTable | mean_created_tmp_disk_tables | double | 个 | 每秒创建临时表个数。 |
PolarDBCOMDML | mean_com_delete | double | 个 | 每秒DELETE数。 |
mean_com_delete_multi | double | 个 | 每秒Multi-DELETE数。 | |
mean_com_insert | double | 个 | 每秒INSERT数。 | |
mean_com_insert_select | double | 个 | 每秒INSERT_SELECT数。 | |
mean_com_replace | double | 个 | 每秒REPLACE数。 | |
mean_com_replace_select | double | 个 | 每秒REPLACE_SELECT数。 | |
mean_com_select | double | 个 | 每秒SELECT数。 | |
mean_com_update | double | 个 | 每秒UPDATE数。 | |
mean_com_update_multi | double | 个 | 每秒Multi-UPDATE数。 | |
PolarDBRowDML | mean_innodb_rows_deleted | double | 行 | 每秒删除的行数。 |
mean_innodb_rows_inserted | double | 行 | 每秒插入的行数。 | |
mean_innodb_rows_read | double | 行 | 每秒读取的行数。 | |
mean_innodb_rows_updated | double | 行 | 每秒更新的行数。 | |
PolarDBIOSTAT | mean_iops_r | double | 次/秒 | 读IOPS。 |
mean_iops_w | double | 次/秒 | 写IOPS。 | |
mean_iops | double | 次/秒 | 总IOPS。 | |
mean_io_throughput_r | double | MB | 读I/O吞吐量。 | |
mean_io_throughput_w | double | MB | 写I/O吞吐量。 | |
mean_io_throughput | double | MB | 总I/O吞吐量。 | |
PolarDBReplicaLag | mean_replication_delay | double | 秒 | 复制延迟。 |
PolarDB PostgreSQL版性能指标监控项
性能指标 | 监控项 | 数据类型 | 单位 | 描述 |
PolarDBCPU | cpu_ratio | double | 百分比 | 总CPU使用率。 |
cpu_sys_ratio | double | 百分比 | 系统态CPU使用率。 | |
cpu_user_ratio | double | 百分比 | 用户态CPU使用率。 | |
PolarDBMemory | mem_ratio | double | 百分比 | 内存使用率。 |
PolarDBMemoryForPCU | pcu_mem_usage | double | 百分比 | 基于PCU单位的内存使用率。 |
PolarDBCPUForPCU | pcu_cpu_usage | double | 百分比 | 基于PCU单位的CPU使用率。 |
PolarDBPCU | pcu_by_cpu_cores | double | 核 | PCU核数。 |
PolarDBIOSTAT | mean_io_throughput_w | double | MB | 写吞吐量。 |
mean_io_throughput_r | double | MB | 读吞吐量。 | |
mean_io_throughput | double | MB | 总吞吐量。 | |
mean_iops_w | double | 次 | 写IOPS。 | |
mean_iops_r | double | 次 | 读IOPS。 | |
mean_iops | double | 次 | 总IOPS。 | |
PolarDBDiskUsage | mean_tmp_size | double | MB | 临时空间使用量。 |
mean_log_size | double | MB | 本地日志使用量。 | |
mean_wal_size | double | MB | WAL日志空间使用量。 | |
mean_ins_total_size | double | MB | 集群空间使用量。 | |
mean_data_size | double | MB | 用户数据总使用量。 | |
PolarDBReplication | mean_max_slot_wal_delay_in_mb | double | MB | 最大Slot延迟。 |
mean_logical_rep_latency_in_mb | double | MB | 逻辑复制延迟。 | |
mean_send_latency_in_mb | double | MB | 主节点发送延迟。 | |
mean_replay_latency_in_mb | double | MB | 备节点回放延迟。 | |
PolarDBSQL | mean_five_seconds_two_pc_transactions | double | 个 | 已执行5s的两阶段事务。 |
mean_three_seconds_two_pc_transactions | double | 个 | 已执行3s的两阶段事务。 | |
mean_one_second_two_pc_transactions | double | 个 | 已执行1s的两阶段事务。 | |
mean_five_seconds_long_transactions | double | 个 | 已执行5s的事务数。 | |
mean_three_seconds_transactions | double | 个 | 已执行3s的事务数。 | |
mean_one_second_transactions | double | 个 | 已执行1s的事务数。 | |
mean_five_seconds_idle_transactions | double | 个 | 已空闲5s的事务数。 | |
mean_three_seconds_idle_transactions | double | 个 | 已空闲3s的事务数。 | |
mean_one_second_idle_transactions | double | 个 | 已空闲1s的事务数。 | |
mean_five_seconds_executing_sqls | double | 个 | 已执行5s的SQL数。 | |
mean_three_seconds_executing_sqls | double | 个 | 已执行3s的SQL数。 | |
mean_one_second_executing_sqls | double | 个 | 已执行1s的SQL数。 | |
PolarDBSlowSQLTime | max_executing_sql_last_time | double | ms | 当前最慢SQL的执行时间。 |
PolarDBReplicationSlots | total_slots | double | 个 | 复制槽个数。 |
inactive_slots | double | 个 | 非活跃复制槽个数。 | |
PolarDBVacuum | mean_db_age | double | xids | 数据库最大年龄。 |
PolarDBTransaction | mean_long_two_pc_transactions | double | 个 | 两阶段长事务个数。 |
mean_two_pc_transactions | double | 个 | 两阶段事务个数。 | |
mean_long_transactions | double | 个 | 长事务个数。 | |
mean_long_idle_transactions | double | 个 | 空闲长事务个数。 | |
mean_idle_transactions | double | 个 | 空闲事务个数。 | |
mean_waiting_transactions | double | 个 | 等待事务数。 | |
mean_active_transactions | double | 个 | 活跃事务数。 | |
PolarDBBuffer | mean_blks_hit_delta | double | 次 | 每秒块命中数。 |
mean_blks_read_delta | double | 个 | 每秒读取块数。 | |
mean_buffers_alloc | double | 次 | 累积缓存分配数。 | |
mean_buffers_backend_fsync | double | 次 | 累积Backend fsync数。 | |
mean_buffers_backend | double | 次 | 累积Backend缓存写入数。 | |
mean_buffers_clean | double | 次 | 累积Checkpoint后端写入缓存数。 | |
mean_hit_ratio | double | 百分比 | 块命中率。 | |
PolarDBTemp | mean_temp_bytes | double | Bytes | 每秒临时文件数据生成大小。 |
mean_temp_files | double | 个 | 每秒临时文件数据生成个数。 | |
PolarDBQPSTPS | mean_deadlocks_delta | double | 次 | 每秒死锁数。 |
mean_rollbacks_delta | double | 次 | 每秒回滚数。 | |
mean_commits_delta | double | 次 | 每秒提交数。 | |
mean_tps | double | 次 | 每秒事务处理数。 | |
PolarDBRowDML | mean_tup_deleted_delta | double | 行 | 每秒删除行数。 |
mean_tup_updated_delta | double | 行 | 每秒更新行数。 | |
mean_tup_inserted_delta | double | 行 | 每秒插入行数。 | |
mean_tup_fetched_delta | double | 行 | 每秒读取行数。 | |
mean_tup_returned_delta | double | 行 | 每秒返回行数。 | |
PolarDBConnections | mean_idle_connection | double | 个 | 空闲连接数。 |
mean_waiting_connection | double | 个 | 等待连接数。 | |
mean_active_session | double | 个 | 活跃会话数。 | |
mean_total_session | double | 个 | 会话总数。 |
PolarProxy性能指标监控项
性能指标 | 监控项 | 数据类型 | 单位 | 描述 |
PolarProxy_CpuUsage | docker_container_cpu | double | 百分比 | PolarDB代理层(PolarProxy)的CPU使用率。 |
PolarProxy_Cps | service_connections_ps | double | 个/秒 | PolarDB代理层(PolarProxy)的每秒新增连接数。 |
PolarProxy_CurrentConns | service_current_connections | double | 个 | PolarDB代理层(PolarProxy)的当前连接数。 |
PolarProxy_UpFlows | service_upstream_netflow | double | KB/s | PolarDB代理层(PolarProxy)的每秒输入流量。 |
PolarProxy_DownFlows | service_downstream_netflow | double | KB/s | PolarDB代理层(PolarProxy)的每秒输出流量。 |
PolarProxy_Qps | service_queries | double | 次/秒 | PolarDB代理层(PolarProxy)的每秒请求数。 |
PolarProxy_DBConns | server_connections | double | 个 | PolarDB代理层(PolarProxy)到DB各节点的连接数。 |
PolarProxy_DBQps | server_queries | double | 个/秒 | PolarDB代理层(PolarProxy)到DB各节点的请求速率。 |
PolarProxy_DBActionOps | server_active_operations | double | 个 | PolarDB代理层(PolarProxy)到DB各节点的当前活跃请求数。 |
PolarProxy_LsnNotMatch | service_queries_lsn_not_match | double | 个/秒 | 各集群地址下一致性不满足导致请求路由到主节点的速率。 |
PolarProxy_QueriesInTrx | service_queries_in_trx | double | 个/秒 | 各集群地址下事务导致请求路由到主库的速率。 |
PolarProxy_Rt | service_proxy_rt | double | 微秒 | 往返延迟。 |
PolarProxy_Db_Rt | service_db_rt | double | 微秒 | 平均每个请求的DB耗时。 |
PolarProxy_Full_Rt | service_full_rt | double | 微秒 | 平均每个请求的总耗时。 |