mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-05-05 00:37:37 +00:00
add log-counter go plugin
This commit is contained in:
31
config/kernel-monitor-counter.json
Normal file
31
config/kernel-monitor-counter.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"plugin": "custom",
|
||||
"pluginConfig": {
|
||||
"invoke_interval": "5m",
|
||||
"timeout": "1m",
|
||||
"max_output_length": 80,
|
||||
"concurrency": 1
|
||||
},
|
||||
"source": "kernel-monitor",
|
||||
"conditions": [
|
||||
{
|
||||
"type": "FrequentUnregisterNetDevice",
|
||||
"reason": "NoFrequentUnregisterNetDevice",
|
||||
"message": "node is functioning properly"
|
||||
}
|
||||
],
|
||||
"rules": [
|
||||
{
|
||||
"type": "permanent",
|
||||
"condition": "FrequentUnregisterNetDevice",
|
||||
"reason": "UnregisterNetDevice",
|
||||
"path": "/home/kubernetes/bin/log-counter",
|
||||
"args": [
|
||||
"--lookback=20m",
|
||||
"--count=3",
|
||||
"--pattern=unregister_netdevice: waiting for \\w+ to become free. Usage count = \\d+"
|
||||
],
|
||||
"timeout": "1m"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user