You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, whenever we do the above (specify BOTH include and exclude)
we get
included-something # should be here as expected - matches include ONLY
somethingelse # should not be here - does not match include or exclude
anotherthing # should not be here - does not match include or exclude
include-somethingtest # should not be here - matches BOTH include AND exclude
but we don’t get
test-something-else-too # which matches exclude ONLY
We suspect the logic should be:
if len(d.ContainerInclude)>0 && ! d.ContainerFilter.containerInclude.Match(cname) {
return nil
}
if len(d.ContainerExclude)>0 && d.ContainerFilter.containerExclude.Match(cname) {
return nil
}
System info:
Telegraf version: 1.4.1
The text was updated successfully, but these errors were encountered:
Bug report
Telegraf plugin input docker says config can contain:
Containers to include and exclude. Collect all if empty. Globs accepted.
but inspection of this line here and testing shows that these are EXCLUSIVE parameters...
Expected behavior:
We would expect only "included*" containers that do not contain "test" to be published.
Actual behavior:
The following causes all but 'test' containers to be published:
Right now, whenever we do the above (specify BOTH include and exclude)
we get
but we don’t get
We suspect the logic should be:
System info:
Telegraf version: 1.4.1
The text was updated successfully, but these errors were encountered: