David Ashpole
f6f5fd21b4
handle the new 5.0 linux format for oom messages
2020-03-05 11:53:40 -08:00
David Ashpole
0995283c32
Merge pull request #2160 from gaorong/victimContainerName
...
change default oom victim container name
2019-02-05 09:27:02 -08:00
gaorong
1ea111582c
cleanup oom parser test
2019-02-02 10:08:58 +08:00
gaorong
407289527c
change default oom victim container name
2019-02-02 10:00:57 +08:00
Davanum Srinivas
4da6d809be
Move from glog to klog
...
Change-Id: Ic92f57c2d7f268d8d985797974883c1a537d6993
2018-11-08 18:06:28 -05:00
Yann Hodique
b36e6fb63a
fix minor errors revealed by go 1.11 ( #2039 )
...
minor fixes for go 1.11
2018-09-10 13:49:37 -07:00
Tim Allclair
5b435b4b70
Clean up cAdvisor logging
2017-11-27 19:48:05 -08:00
Euan Kemp
95f9c8c86f
oomparser: update to use kmsg based parser
...
This provides much more robust support for kernel logs via accessing the
`/dev/kmsg` interface to them directly.
2017-08-30 15:35:40 -07:00
Michael Taufen
3190c1c53d
Fix journalctl leak
...
This fixes the journalctl leak that occurs when a process that uses
cadvisor exits. See issues #1725 and
https://github.com/kubernetes/kubernetes/issues/34965 .
2017-08-23 09:14:54 -07:00
Euan Kemp
fe722c7b02
oomparser: don't get stuck for certain processes
...
The oomparser logic would end up stuck, unable to detect the end of a
given oom trace, for any process with a name that didn't match \w+.
This includes processes like 'python3.4' due to the '.', or
'docker-containerd' due to the '-'.
This fix was included in pr #1544 last year, but since that PR seems
dead it seems like a good idea to break this more important fix out.
I've updated the tests such that they would have caught this issue.
2017-08-01 16:21:31 -07:00
Euan Kemp
125d026aae
oomparser: Fix tests
...
They had reflect.Equal instead of !reflect.Equal.
They also depended on the current year. Which changed.
2016-10-20 10:50:14 -07:00
Seth Jennings
4790ea203b
add log file tailing and logrotate support
2016-05-17 23:12:52 -05:00
Seth Jennings
7fd7f20717
fix chan recieve block on oom event
2016-05-02 15:31:28 -05:00
Seth Jennings
5fa60e5019
prefer using systemd for oom monitoring
2016-05-02 13:41:12 -05:00
Phillip Wittrock
dee3f07b0a
resolves #1030 oomparser_test should get the current year for matching the time of death.
2016-01-04 10:50:08 -08:00
Lei Xue
dbbe38dfed
re-order the import package
2015-11-30 16:43:22 +08:00
Jimmi Dyson
b9ff5c098c
Fix up ignored/inefficient assigns (via ineffassign linter)
2015-11-27 22:01:54 +00:00
Jimmi Dyson
d1fce20304
Regexp tidy up
2015-11-26 09:14:26 +00:00
Luciano Antonio Borguetti Faustino
e0c994c4c5
Add flag -k to journalctl show only kernel messages
2015-09-10 23:53:34 -03:00
Victor Marmol
834d1cf34e
Lower logging level of some common logs.
2015-05-06 10:24:50 -07:00
Victor Marmol
a5d99c3aa8
Add /var/log/kern.log to kernel log files.
...
This file is present in most distros and provides most of the logs we're
looking for. We support the others if this one is not available.
2015-04-23 19:04:58 -07:00
Victor Marmol
32b33b215a
Add support for identifying OOM victim.
2015-04-15 13:09:22 -07:00
Victor Marmol
11462d80bc
Lowering log levels.
...
Reduce common logging using Kubernetes logging standards.
2015-04-13 15:05:41 -07:00
Katie Knister
ee4bdc2698
Improvements to events integration test
2015-04-10 13:33:22 -07:00
Katie Knister
21e96ed61c
adding systemd oomparser functionality
2015-03-24 12:33:57 -07:00
Katie Knister
78f3029943
Fixed some bugs in oomparser streaming
2015-03-10 18:18:54 -07:00
Katie Knister
412f27798e
Revised oomparser to not use all the cpu
2015-03-02 14:22:53 -08:00
Katie Knister
3856690715
Added an oomwatcher function to manager
2015-02-19 16:22:37 -08:00
Katie Knister
1291347c73
small change to the way time is parsed from the kernel log in oomparser
...
small change to the way time is parsed from the kernel log in oomparser
2015-02-04 18:48:34 -08:00
Katie Knister
c806d603ba
Added a test file for oomparser
2015-01-30 10:24:08 -08:00
Katie Knister
b5609e2942
Made an oomparser that gets oomkill logs from kernel messages
...
Made an oomparser that gets oomkill logs from kernel messages
Made an oomparser that gets oomkill logs from kernel messages
Made an oomparser that gets oomkill logs from kernel messages
Made an oomparser that gets oomkill logs from kernel messages
Made an oomparser that gets oomkill logs from kernel messages
Made an oomparser that gets oomkill logs from kernel messages
2015-01-27 10:26:38 -08:00