@@ -59,11 +59,12 @@ var (
5959)
6060
6161type Event struct {
62- Low uint64
63- High uint64
64- Max uint64
65- OOM uint64
66- OOMKill uint64
62+ Low uint64
63+ High uint64
64+ Max uint64
65+ OOM uint64
66+ OOMKill uint64
67+ OOMGroupKill uint64
6768}
6869
6970// Resources for a cgroups v2 unified hierarchy
@@ -679,11 +680,12 @@ func readMemoryEvents(cgroupPath string) (*stats.MemoryEvents, error) {
679680 return nil , nil
680681 }
681682 return & stats.MemoryEvents {
682- Low : memoryEvents ["low" ],
683- High : memoryEvents ["high" ],
684- Max : memoryEvents ["max" ],
685- Oom : memoryEvents ["oom" ],
686- OomKill : memoryEvents ["oom_kill" ],
683+ Low : memoryEvents ["low" ],
684+ High : memoryEvents ["high" ],
685+ Max : memoryEvents ["max" ],
686+ Oom : memoryEvents ["oom" ],
687+ OomKill : memoryEvents ["oom_kill" ],
688+ OomGroupKill : memoryEvents ["oom_group_kill" ],
687689 }, nil
688690}
689691
@@ -837,11 +839,12 @@ func (c *Manager) EventChan() (<-chan Event, <-chan error) {
837839 }
838840
839841 ec <- Event {
840- Low : out ["low" ],
841- High : out ["high" ],
842- Max : out ["max" ],
843- OOM : out ["oom" ],
844- OOMKill : out ["oom_kill" ],
842+ Low : out ["low" ],
843+ High : out ["high" ],
844+ Max : out ["max" ],
845+ OOM : out ["oom" ],
846+ OOMKill : out ["oom_kill" ],
847+ OOMGroupKill : out ["oom_group_kill" ],
845848 }
846849
847850 if shouldExit {
0 commit comments