File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed
test/kernel_log_generator/problems Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 11{
2- "plugin" : " journald" ,
3- "pluginConfig" : {
4- "source" : " kernel"
5- },
6- "logPath" : " /var/log/journal" ,
2+ "plugin" : " kmsg" ,
3+ "logPath" : " /dev/kmsg" ,
74 "lookback" : " 5m" ,
85 "bufferSize" : 10 ,
96 "source" : " kernel-monitor" ,
129 "type" : " KernelDeadlock" ,
1310 "reason" : " KernelHasNoDeadlock" ,
1411 "message" : " kernel has no deadlock"
12+ },
13+ {
14+ "type" : " ReadonlyFilesystem" ,
15+ "reason" : " FilesystemIsNotReadOnly" ,
16+ "message" : " Filesystem is not read-only"
1517 }
1618 ],
1719 "rules" : [
5153 "condition" : " KernelDeadlock" ,
5254 "reason" : " DockerHung" ,
5355 "pattern" : " task docker:\\ w+ blocked for more than \\ w+ seconds\\ ."
56+ },
57+ {
58+ "type" : " permanent" ,
59+ "condition" : " ReadonlyFilesystem" ,
60+ "reason" : " FilesystemIsReadOnly" ,
61+ "pattern" : " Remounting filesystem read-only"
5462 }
5563 ]
5664}
Original file line number Diff line number Diff line change @@ -2,11 +2,8 @@ apiVersion: v1
22data :
33 kernel-monitor.json : |
44 {
5- "plugin": "journald",
6- "pluginConfig": {
7- "source": "kernel"
8- },
9- "logPath": "/var/log/journal",
5+ "plugin": "kmsg",
6+ "logPath": "/dev/kmsg",
107 "lookback": "5m",
118 "bufferSize": 10,
129 "source": "kernel-monitor",
1512 "type": "KernelDeadlock",
1613 "reason": "KernelHasNoDeadlock",
1714 "message": "kernel has no deadlock"
15+ },
16+ {
17+ "type": "ReadonlyFilesystem",
18+ "reason": "FilesystemIsReadOnly",
19+ "message": "Filesystem is read-only"
1820 }
1921 ],
2022 "rules": [
5456 "condition": "KernelDeadlock",
5557 "reason": "DockerHung",
5658 "pattern": "task docker:\\w+ blocked for more than \\w+ seconds\\."
59+ },
60+ {
61+ "type": "permanent",
62+ "condition": "ReadonlyFilesystem",
63+ "reason": "FilesystemIsReadOnly",
64+ "pattern": "Remounting filesystem read-only"
5765 }
5866 ]
5967 }
Original file line number Diff line number Diff line change 1+ EXT4-fs (sda1): Remounting filesystem read-only
You can’t perform that action at this time.
0 commit comments