Skip to content

Commit 1aa43d4

Browse files
author
charlyF
committed
adding option to exclude dockercloud containers
1 parent 7442be3 commit 1aa43d4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/dockerutil.py

+7
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ class CGroupException(Exception):
4848
# only used if no exclude rule was defined
4949
DEFAULT_CONTAINER_EXCLUDE = ["docker_image:gcr.io/google_containers/pause.*", "image_name:openshift/origin-pod"]
5050

51+
# only used for docer cloud users not willing to monitor the underlying containers of the docker cloud agent.
52+
DOCKERCLOUD_EXCLUDE = ["docker_image:dockercloud/.*"]
53+
5154
log = logging.getLogger(__name__)
5255

5356

@@ -108,6 +111,10 @@ def __init__(self, **kwargs):
108111
else:
109112
self.filtering_enabled = True
110113

114+
if instance.get('ignore_docker_cloud_containers'):
115+
self._exclude = DOCKERCLOUD_EXCLUDE
116+
self.filtering_enabled = False
117+
111118
if self.filtering_enabled:
112119
self.build_filters()
113120

0 commit comments

Comments
 (0)