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 {
|
if in_oom_kernel_log {
|
||||||
oomCurrentInstance := &OomInstance{
|
oomCurrentInstance := &OomInstance{
|
||||||
ContainerName: "/",
|
ContainerName: "/",
|
||||||
|
VictimContainerName: "/",
|
||||||
TimeOfDeath: msg.Timestamp,
|
TimeOfDeath: msg.Timestamp,
|
||||||
}
|
}
|
||||||
for msg := range kmsgEntries {
|
for msg := range kmsgEntries {
|
||||||
|
@ -266,7 +266,7 @@ func TestStreamOOMs(t *testing.T) {
|
|||||||
ProcessName: "badsysprogram",
|
ProcessName: "badsysprogram",
|
||||||
TimeOfDeath: testTime,
|
TimeOfDeath: testTime,
|
||||||
ContainerName: "/",
|
ContainerName: "/",
|
||||||
VictimContainerName: "",
|
VictimContainerName: "/",
|
||||||
}},
|
}},
|
||||||
},
|
},
|
||||||
{ // Multiple OOMs
|
{ // Multiple OOMs
|
||||||
|
Loading…
Reference in New Issue
Block a user