Add systemd monitor for kubelet, docker, and containerd restart events

This commit is contained in:
Zhen Wang
2019-06-12 20:23:13 -07:00
parent e10e6cc106
commit b94a555dfc

View File

@@ -0,0 +1,28 @@
{
"plugin": "journald",
"pluginConfig": {
"source": "systemd"
},
"logPath": "/var/log/journal",
"lookback": "",
"bufferSize": 10,
"source": "systemd-monitor",
"conditions": [],
"rules": [
{
"type": "temporary",
"reason": "KubeletStart",
"pattern": "Started Kubernetes kubelet."
},
{
"type": "temporary",
"reason": "DockerStart",
"pattern": "Starting Docker Application Container Engine..."
},
{
"type": "temporary",
"reason": "ContainerdStart",
"pattern": "Starting containerd container runtime..."
}
]
}