diff --git a/conf/glances.conf b/conf/glances.conf index 716642caf9e37e9b3b31e2cc6e50019e9f2c20c6..6393a11ffd32bc2abc337d913082f6d5d4a85083 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -327,6 +327,8 @@ port_default_gateway=True [docker] disable=False +# Hide some containers (comma separeted list) +#hide=telegraf # Define the maximum docker size name (default is 20 chars) max_name_size=20 #cpu_careful=50 diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index 3062404b681ef4d98fcceaaf8e4a533160f69cae..14f35af8165be45cfc6f193fe125e4e071c82ac5 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -210,6 +210,10 @@ class Plugin(GlancesPlugin): # Get stats for all containers stats['containers'] = [] for container in containers: + # Do not take hide container into account + if self.is_hide(nativestr(container.name)): + continue + # Init the stats for the current container container_stats = {} # The key is the container name and not the Id