diff options
-rw-r--r-- | sos/plugins/grafana.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sos/plugins/grafana.py b/sos/plugins/grafana.py index 308fd27d..112d7f36 100644 --- a/sos/plugins/grafana.py +++ b/sos/plugins/grafana.py @@ -25,10 +25,12 @@ class Grafana(Plugin, RedHatPlugin): def setup(self): if self.get_option("all_logs"): - self.add_copy_spec("/var/log/grafana/*.log") + self.add_copy_spec("/var/log/grafana/*.log", + sizelimit=self.get_option("log_size")) else: - self.add_copy_spec_limit("/var/log/grafana/*.log", - sizelimit=self.get_option("log_size")) + self.add_copy_spec("/var/log/grafana/*.log", + sizelimit=self.get_option("log_size")) + self.add_cmd_output([ "grafana-cli plugins ls", "grafana-cli plugins list-remote", |