Skip to content

Commit

Permalink
Add retrocompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
hithwen committed Apr 23, 2021
1 parent 96d74c2 commit 6d44663
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mysql/datadog_checks/mysql/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@

# Vars found in "show slave status" or "show replication status" (depending on mysql version)
REPLICA_VARS = {
'Seconds_Behind_Source': ('mysql.replication.seconds_behind_source', GAUGE), # for 8 onwards
'Seconds_Behind_Source': [ # for 8 onwards
('mysql.replication.seconds_behind_source', GAUGE),
('mysql.replication.seconds_behind_master', GAUGE), # for retrocompatibility
],
'Seconds_Behind_Master': ('mysql.replication.seconds_behind_master', GAUGE), # before 8
'Replicas_connected': [
('mysql.replication.slaves_connected', GAUGE),
Expand Down

0 comments on commit 6d44663

Please sign in to comment.