add log-counter go plugin

This commit is contained in:
David Ashpole
2018-06-20 15:55:19 -07:00
parent 2f915ecf29
commit bf730e9c63
9 changed files with 364 additions and 3 deletions

View 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"
}
]
}