1. Make source and conditions configurable.

2. Add multiple events and conditions support in problem interface.
This commit is contained in:
Lantao Liu
2016-06-02 15:32:02 -07:00
parent 63b4ba7206
commit 5b07afd325
7 changed files with 114 additions and 67 deletions
+12 -1
View File
@@ -1,6 +1,14 @@
{
"logPath": "/log/kern.log",
"bufferSize": 10,
"source": "kernel-monitor",
"conditions": [
{
"type": "KernelDeadlock",
"reason": "KernelHasNoDeadlock",
"message": "kernel has no deadlock"
}
],
"rules": [
{
"type": "temporary",
@@ -14,17 +22,20 @@
},
{
"type": "permanent",
"condition": "KernelDeadlock",
"reason": "AUFSUmountHung",
"pattern": "task umount\\.aufs:\\w+ blocked for more than \\w+ seconds\\."
},
{
"type": "permanent",
"condition": "KernelDeadlock",
"reason": "DockerHung",
"pattern": "task docker:\\w+ blocked for more than \\w+ seconds\\."
},
{
"type": "permanent",
"reason": "KernelBug",
"condition": "KernelDeadlock",
"reason": "UnregisterNetDeviceIssue",
"pattern": "unregister_netdevice: waiting for \\w+ to become free. Usage count = \\d+"
}
]