Skip to content

Commit

Permalink
Include new metric in metadata.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
hithwen committed Apr 23, 2021
1 parent 62942fb commit 3474c45
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mysql/datadog_checks/mysql/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
SCHEMA_VARS = {'information_schema_size': ('mysql.info.schema.size', GAUGE)}

REPLICA_VARS = {
'Seconds_Behind_Source': ('mysql.replication.seconds_behind_master', GAUGE), # for 8 onwards
'Seconds_Behind_Source': ('mysql.replication.seconds_behind_source', GAUGE), # for 8 onwards
'Seconds_Behind_Master': ('mysql.replication.seconds_behind_master', GAUGE), # before 8
'Replicas_connected': [
('mysql.replication.slaves_connected', GAUGE),
Expand Down
3 changes: 2 additions & 1 deletion mysql/metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ mysql.performance.table_locks_waited,gauge,,,,The total number of times that a r
mysql.performance.threads_connected,gauge,,connection,,The number of currently open connections.,0,mysql,threads connected
mysql.performance.threads_running,gauge,,thread,,The number of threads that are not sleeping.,0,mysql,threads running
mysql.performance.user_time,gauge,,percent,,Percentage of CPU time spent in user space by MySQL.,-1,mysql,cpu user
mysql.replication.seconds_behind_master,gauge,,second,,The lag in seconds between the master and the slave.,-1,mysql,replication lag
mysql.replication.seconds_behind_master,gauge,,second,,The lag in seconds between the master and the slave. Until v8,-1,mysql,replication lag
mysql.replication.seconds_behind_source,gauge,,second,,The lag in seconds between the source and the replica. From v>=8,-1,mysql,replication lag
mysql.replication.slave_running,gauge,,,,Deprecated. Use service check mysql.replication.replica_running instead. A boolean showing if this server is a replication slave / master that is running.,0,mysql,slave running
mysql.replication.slaves_connected,gauge,,,,Deprecated. Use mysql.replication.replicas_connected instead. Number of slaves connected to a replication master.,0,mysql,slaves connected
mysql.replication.replicas_connected,gauge,,,,Number of replicas connected to a replication source.,0,mysql,replicas connected
Expand Down

0 comments on commit 3474c45

Please sign in to comment.