Add docker plugin to the classical Web UI

This commit is contained in:
Nicolargo 2015-01-24 17:00:48 +01:00
parent c6a47c1ecc
commit 88d7e40597
2 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,7 @@
<div class="col-sm-9"> <div class="col-sm-9">
% include('plugin_table', plugin_name="alert", stats=stats['alert']) % include('plugin_table', plugin_name="alert", stats=stats['alert'])
% include('plugin_text', plugin_name="processcount", stats=stats['processcount']) % include('plugin_text', plugin_name="processcount", stats=stats['processcount'])
% include('plugin_table', plugin_name="docker", stats=stats['docker'])
<div class="row"> <div class="row">
<div class="col-sm-9"> <div class="col-sm-9">
% include('plugin_table', plugin_name="monitor", stats=stats['monitor']) % include('plugin_table', plugin_name="monitor", stats=stats['monitor'])

View File

@ -330,7 +330,8 @@ class GlancesBottle(object):
'alert': self.stats.get_plugin('alert').get_stats_display(args=self.args), 'alert': self.stats.get_plugin('alert').get_stats_display(args=self.args),
'processcount': self.stats.get_plugin('processcount').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), '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) return template('base', refresh_time=refresh_time, stats=stats)