Merge pull request #2160 from gaorong/victimContainerName
change default oom victim container name
This commit is contained in:
commit
0995283c32
@ -102,6 +102,7 @@ func (self *OomParser) StreamOoms(outStream chan<- *OomInstance) {
|
||||
if in_oom_kernel_log {
|
||||
oomCurrentInstance := &OomInstance{
|
||||
ContainerName: "/",
|
||||
VictimContainerName: "/",
|
||||
TimeOfDeath: msg.Timestamp,
|
||||
}
|
||||
for msg := range kmsgEntries {
|
||||
|
@ -266,7 +266,7 @@ func TestStreamOOMs(t *testing.T) {
|
||||
ProcessName: "badsysprogram",
|
||||
TimeOfDeath: testTime,
|
||||
ContainerName: "/",
|
||||
VictimContainerName: "",
|
||||
VictimContainerName: "/",
|
||||
}},
|
||||
},
|
||||
{ // Multiple OOMs
|
||||
|
Loading…
Reference in New Issue
Block a user