mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-05-06 01:07:07 +00:00
35 lines
844 B
JSON
35 lines
844 B
JSON
{
|
|
"plugin": "custom",
|
|
"pluginConfig": {
|
|
"invoke_interval": "5m",
|
|
"timeout": "1m",
|
|
"max_output_length": 80,
|
|
"concurrency": 1
|
|
},
|
|
"source": "kernel-monitor",
|
|
"metricsReporting": true,
|
|
"conditions": [
|
|
{
|
|
"type": "FrequentUnregisterNetDevice",
|
|
"reason": "NoFrequentUnregisterNetDevice",
|
|
"message": "node is functioning properly"
|
|
}
|
|
],
|
|
"rules": [
|
|
{
|
|
"type": "permanent",
|
|
"condition": "FrequentUnregisterNetDevice",
|
|
"reason": "UnregisterNetDevice",
|
|
"path": "/home/kubernetes/bin/log-counter",
|
|
"args": [
|
|
"--journald-source=kernel",
|
|
"--log-path=/var/log/journal",
|
|
"--lookback=20m",
|
|
"--count=3",
|
|
"--pattern=unregister_netdevice: waiting for \\w+ to become free. Usage count = \\d+"
|
|
],
|
|
"timeout": "1m"
|
|
}
|
|
]
|
|
}
|