Skip to content

Commit

Permalink
[mysql] Add wsrep_local_{recv,send}_queue instant metric (#15841)
Browse files Browse the repository at this point in the history
* [mysql] Add wsrep_local_{recv,send}_queue instant metric

* Update const.py
  • Loading branch information
frivoire authored Sep 29, 2023
1 parent 7d8b832 commit 865a5af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mysql/datadog_checks/mysql/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 3 additions & 1 deletion mysql/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 865a5af

Please sign in to comment.