Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker] Filter events #1285

Merged
merged 6 commits into from
Jan 13, 2015
Merged

[docker] Filter events #1285

merged 6 commits into from
Jan 13, 2015

Conversation

LotharSee
Copy link
Contributor

Some improvements around Docker containers filtering.

  • Filters also apply to events. Fix [docker] container filters do not work with events #1234
  • Performance improvements around filtering and regex
  • Fix the logic of our rules: what we were explaining in the documentation (the docker.yaml.example) wasn't matching the real behavior. Fix the code to make it matches.
  • Clarify the explanations in the example config.

@LeoCavaille LeoCavaille added this to the 5.2.0 milestone Jan 9, 2015
@LeoCavaille LeoCavaille changed the title Filter docker events [docker] Filter events Jan 9, 2015
@remh remh self-assigned this Jan 9, 2015
# Aggregate events, one per image. Put newer events first.
events = defaultdict(list)
for event in api_events:
# Skip events related to filtered containers
if event['id'] in skipped_container_ids:
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick but let's log something in debug here.

@remh
Copy link
Contributor

remh commented Jan 9, 2015

Looks great besides the nitpicks!

remh added a commit that referenced this pull request Jan 13, 2015
@remh remh merged commit 7455d63 into master Jan 13, 2015
@remh remh deleted the filter-docker-events branch March 23, 2015 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[docker] container filters do not work with events
3 participants