diff options
author | Jose Castillo <jcastillo@redhat.com> | 2018-03-28 17:52:35 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-05-22 15:04:20 +0100 |
commit | cad9540039aeae55b1ebd84c12fd8a853901c822 (patch) | |
tree | c61a16654c1ca3cb41eb69fb513266428f84f1f4 | |
parent | ac33925bac828246229a93da0f9b4e9218bca6b8 (diff) | |
download | sos-cad9540039aeae55b1ebd84c12fd8a853901c822.tar.gz |
[mongodb] Collect size of dbs from FS point of view
This patch gathers the size of the content in
/var/lib/mongodb/ , which can be useful in some
cases to see if a db is growing out of control.
Closes: #1233.
Resolves: #1253
Signed-off-by: Jose Castillo <jcastillo@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/mongodb.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sos/plugins/mongodb.py b/sos/plugins/mongodb.py index 8c895179..d4370ed1 100644 --- a/sos/plugins/mongodb.py +++ b/sos/plugins/mongodb.py @@ -40,6 +40,7 @@ class MongoDb(Plugin, DebianPlugin, UbuntuPlugin): "/var/log/mongodb/mongodb.log", "/var/log/containers/mongodb/mongodb.log" ]) + self.add_cmd_output("du -s /var/lib/mongodb/") def postproc(self): self.do_file_sub( |