From 88d7e40597eedf6812f9fbb60769c73e3031aac7 Mon Sep 17 00:00:00 2001 From: Nicolargo Date: Sat, 24 Jan 2015 17:00:48 +0100 Subject: [PATCH] Add docker plugin to the classical Web UI --- glances/outputs/bottle/base.tpl | 1 + glances/outputs/glances_bottle.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/glances/outputs/bottle/base.tpl b/glances/outputs/bottle/base.tpl index 30f73a35..30d69690 100644 --- a/glances/outputs/bottle/base.tpl +++ b/glances/outputs/bottle/base.tpl @@ -47,6 +47,7 @@
% include('plugin_table', plugin_name="alert", stats=stats['alert']) % include('plugin_text', plugin_name="processcount", stats=stats['processcount']) + % include('plugin_table', plugin_name="docker", stats=stats['docker'])
% include('plugin_table', plugin_name="monitor", stats=stats['monitor']) diff --git a/glances/outputs/glances_bottle.py b/glances/outputs/glances_bottle.py index 4256efd1..b5ff8bbf 100644 --- a/glances/outputs/glances_bottle.py +++ b/glances/outputs/glances_bottle.py @@ -330,7 +330,8 @@ class GlancesBottle(object): 'alert': self.stats.get_plugin('alert').get_stats_display(args=self.args), 'processcount': self.stats.get_plugin('processcount').get_stats_display(args=self.args), 'monitor': self.stats.get_plugin('monitor').get_stats_display(args=self.args), - 'processlist': self.stats.get_plugin('processlist').get_stats_display(args=self.args) + 'processlist': self.stats.get_plugin('processlist').get_stats_display(args=self.args), + 'docker': self.stats.get_plugin('docker').get_stats_display(args=self.args) } return template('base', refresh_time=refresh_time, stats=stats)