autotest: change db metric to match other names
Also some whitespace cleanup.
BUG=chromium:810966
TEST=None
Change-Id: I35e02da58ee5dae7834c589433c8db5a8b08228c
Reviewed-on: https://chromium-review.googlesource.com/1016169
Commit-Ready: Jacob Kopczynski <jkop@chromium.org>
Tested-by: Jacob Kopczynski <jkop@chromium.org>
Reviewed-by: Paul Hobbs <phobbs@google.com>
Reviewed-by: Dan Shi <dshi@google.com>
diff --git a/site_utils/check_slave_db_delay.py b/site_utils/check_slave_db_delay.py
index db76ddc..0e29523 100755
--- a/site_utils/check_slave_db_delay.py
+++ b/site_utils/check_slave_db_delay.py
@@ -32,7 +32,7 @@
# SQL command to remove old test results in TKO database.
SLAVE_STATUS_CMD = 'show slave status\G'
DELAY_TIME_REGEX = 'Seconds_Behind_Master:\s(\d+)'
-DELAY_METRICS = 'chromeos/autotest/database/seconds_behind_master'
+DELAY_METRICS = 'chromeos/autotest/afe_db/seconds_behind_master'
# A large delay to report to metrics indicating the replica is in error.
LARGE_DELAY = 1000000
diff --git a/site_utils/stats/mysql_stats.py b/site_utils/stats/mysql_stats.py
index 085272e..aeeb63d 100755
--- a/site_utils/stats/mysql_stats.py
+++ b/site_utils/stats/mysql_stats.py
@@ -33,22 +33,22 @@
LOOP_INTERVAL = 60
EMITTED_STATUSES_COUNTERS = [
- 'bytes_received',
- 'bytes_sent',
- 'connections',
- 'Innodb_buffer_pool_read_requests',
- 'Innodb_buffer_pool_reads',
- 'Innodb_row_lock_waits',
- 'questions',
- 'slow_queries',
- 'threads_created',
+ 'bytes_received',
+ 'bytes_sent',
+ 'connections',
+ 'Innodb_buffer_pool_read_requests',
+ 'Innodb_buffer_pool_reads',
+ 'Innodb_row_lock_waits',
+ 'questions',
+ 'slow_queries',
+ 'threads_created',
]
EMITTED_STATUS_GAUGES = [
- 'Innodb_row_lock_time_avg',
- 'Innodb_row_lock_current_waits',
- 'threads_running',
- 'threads_connected',
+ 'Innodb_row_lock_time_avg',
+ 'Innodb_row_lock_current_waits',
+ 'threads_running',
+ 'threads_connected',
]