diff options
author | Jose Castillo <jcastillo@redhat.com> | 2018-02-08 10:50:33 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-04-23 16:32:57 +0100 |
commit | 18b153ffdbd5a6319e3aea0f7eea6c2831d6a95e (patch) | |
tree | 6c24ead01bd25794a107cca684f4b11cbca0d2c8 | |
parent | f72aaa6d190e9b6c941898c17faae883b414387b (diff) | |
download | sos-18b153ffdbd5a6319e3aea0f7eea6c2831d6a95e.tar.gz |
[mysql] Add 'du' to the mysql database path
This patch gathers the size of the content in
var/lib/mysql , which can be useful in some
cases to see if a db is growing out of control
(for example keystones tokens or another).
Closes: #1144
Resolves: #1210
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/mysql.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/plugins/mysql.py b/sos/plugins/mysql.py index decca694..d626858c 100644 --- a/sos/plugins/mysql.py +++ b/sos/plugins/mysql.py @@ -79,6 +79,8 @@ class Mysql(Plugin): name = "mysqldump_--all-databases" self.add_cmd_output("mysqldump %s" % opts, suggest_filename=name) + self.add_cmd_output("du -s /var/lib/mysql/*") + class RedHatMysql(Mysql, RedHatPlugin): |