From 865a5afc22c84c74813a4d03520f463768bc3171 Mon Sep 17 00:00:00 2001 From: Florent Rivoire Date: Fri, 29 Sep 2023 16:10:58 +0200 Subject: [PATCH] [mysql] Add wsrep_local_{recv,send}_queue instant metric (#15841) * [mysql] Add wsrep_local_{recv,send}_queue instant metric * Update const.py --- mysql/datadog_checks/mysql/const.py | 2 ++ mysql/metadata.csv | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mysql/datadog_checks/mysql/const.py b/mysql/datadog_checks/mysql/const.py index abd91c88441c9..7ee064fa1f3c2 100644 --- a/mysql/datadog_checks/mysql/const.py +++ b/mysql/datadog_checks/mysql/const.py @@ -237,12 +237,14 @@ GALERA_VARS = { 'wsrep_cluster_size': ('mysql.galera.wsrep_cluster_size', GAUGE), 'wsrep_local_recv_queue_avg': ('mysql.galera.wsrep_local_recv_queue_avg', GAUGE), + 'wsrep_local_recv_queue': ('mysql.galera.wsrep_local_recv_queue', GAUGE), 'wsrep_flow_control_paused': ('mysql.galera.wsrep_flow_control_paused', GAUGE), 'wsrep_flow_control_paused_ns': ('mysql.galera.wsrep_flow_control_paused_ns', MONOTONIC), 'wsrep_flow_control_recv': ('mysql.galera.wsrep_flow_control_recv', MONOTONIC), 'wsrep_flow_control_sent': ('mysql.galera.wsrep_flow_control_sent', MONOTONIC), 'wsrep_cert_deps_distance': ('mysql.galera.wsrep_cert_deps_distance', GAUGE), 'wsrep_local_send_queue_avg': ('mysql.galera.wsrep_local_send_queue_avg', GAUGE), + 'wsrep_local_send_queue': ('mysql.galera.wsrep_local_send_queue', GAUGE), 'wsrep_replicated_bytes': ('mysql.galera.wsrep_replicated_bytes', GAUGE), 'wsrep_received_bytes': ('mysql.galera.wsrep_received_bytes', GAUGE), 'wsrep_received': ('mysql.galera.wsrep_received', GAUGE), diff --git a/mysql/metadata.csv b/mysql/metadata.csv index 313d2e24f16e2..ff36b13c65f17 100644 --- a/mysql/metadata.csv +++ b/mysql/metadata.csv @@ -203,13 +203,15 @@ mysql.innodb.s_lock_spin_waits,gauge,,wait,second,"As shown in the SEMAPHORES se mysql.innodb.x_lock_os_waits,gauge,,wait,second,"As shown in the SEMAPHORES section of the SHOW ENGINE INNODB STATUS output.",0,mysql,mysql innodb x_lock_os_waits, mysql.innodb.x_lock_spin_rounds,gauge,,,,"As shown in the SEMAPHORES section of the SHOW ENGINE INNODB STATUS output.",0,mysql,mysql innodb x_lock_spin_rounds, mysql.innodb.x_lock_spin_waits,gauge,,wait,,"As shown in the SEMAPHORES section of the SHOW ENGINE INNODB STATUS output.",0,mysql,mysql innodb x_lock_spin_waits, -mysql.galera.wsrep_local_recv_queue_avg,gauge,,,,"Shows the average size of the local received queue since the last status query.",0,mysql,mysql galera wsrep_local_recv_queue_avg, +mysql.galera.wsrep_local_recv_queue_avg,gauge,,,,"Shows the average size of the local received queue since the last FLUSH STATUS query.",0,mysql,mysql galera wsrep_local_recv_queue_avg, +mysql.galera.wsrep_local_recv_queue,gauge,,,,"Shows the current (instantaneous) size of the local received queue.",0,mysql,mysql galera wsrep_local_recv_queue, mysql.galera.wsrep_flow_control_paused,gauge,,fraction,,"Shows the fraction of the time, since FLUSH STATUS was last called, that the node paused due to Flow Control.",0,mysql,mysql galera wsrep_flow_control_paused, mysql.galera.wsrep_flow_control_paused_ns,count,,nanosecond,,"Shows the pause time due to Flow Control, in nanoseconds.",0,mysql,mysql galera wsrep_flow_control_paused_ns, mysql.galera.wsrep_flow_control_recv,count,,,,"Shows the number of times the galera node has received a pausing Flow Control message from others",0,mysql,mysql galera wsrep_flow_control_recv, mysql.galera.wsrep_flow_control_sent,count,,,,"Shows the number of times the galera node has sent a pausing Flow Control message to others",0,mysql,mysql galera wsrep_flow_control_sent, mysql.galera.wsrep_cert_deps_distance,gauge,,,,"Shows the average distance between the lowest and highest sequence number, or seqno, values that the node can possibly apply in parallel.",0,mysql,mysql galera wsrep_cert_deps_distance, mysql.galera.wsrep_local_send_queue_avg,gauge,,,,"Show an average for the send queue length since the last FLUSH STATUS query.",0,mysql,mysql galera wsrep_local_send_queue_avg, +mysql.galera.wsrep_local_send_queue,gauge,,,,"Show the current (instantaneous) size of the send queue length since the last FLUSH STATUS query.",0,mysql,mysql galera wsrep_local_send_queue, mysql.galera.wsrep_replicated_bytes,gauge,,,,"Total size (in bytes) of writesets sent to other nodes.",0,mysql,mysql galera wsrep_replicated_bytes, mysql.galera.wsrep_received_bytes,gauge,,,,"Total size (in bytes) of writesets received from other nodes.",0,mysql,mysql galera wsrep_received_bytes, mysql.galera.wsrep_received,gauge,,,,"Total number of write-sets received from other nodes.",0,mysql,mysql galera wsrep_received,