type OomInstance struct {
// process id of the killed process Pid int// the name of the killed process ProcessName string// the time that the process was reported to be killed,// accurate to the minute
TimeOfDeath time.Time// the absolute name of the container that OOMed ContainerName string// the absolute name of the container that was killed// due to the OOM.
VictimContainerName string
}
struct that contains information related to an OOM kill instance
Calls goroutine for readLinesFromFile, which feeds it complete lines.
Lines are checked against a regexp to check for the pid, process name, etc.
At the end of an oom message group, StreamOoms adds the new oomInstance to
oomLog