Stop stats collection on container exit

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov
2015-12-16 09:39:28 -08:00
parent ab9be566cf
commit 188eeae376
4 changed files with 20 additions and 1 deletions

View File

@@ -32,6 +32,10 @@ func (h *ExitEvent) Handle(e *Event) error {
ne.Pid = e.Pid
ne.Status = e.Status
h.s.SendEvent(ne)
stopCollect := NewEvent(StopStatsEventType)
stopCollect.ID = container.ID()
h.s.SendEvent(stopCollect)
return nil
}