From cad9540039aeae55b1ebd84c12fd8a853901c822 Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Wed, 28 Mar 2018 17:52:35 +0100 Subject: [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 Signed-off-by: Bryn M. Reeves --- sos/plugins/mongodb.py | 1 + 1 file changed, 1 insertion(+) 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( -- cgit