Skip to content

Commit b94a555

Browse files
committed
Add systemd monitor for kubelet, docker, and containerd restart events
1 parent e10e6cc commit b94a555

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

config/systemd-monitor.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"plugin": "journald",
3+
"pluginConfig": {
4+
"source": "systemd"
5+
},
6+
"logPath": "/var/log/journal",
7+
"lookback": "",
8+
"bufferSize": 10,
9+
"source": "systemd-monitor",
10+
"conditions": [],
11+
"rules": [
12+
{
13+
"type": "temporary",
14+
"reason": "KubeletStart",
15+
"pattern": "Started Kubernetes kubelet."
16+
},
17+
{
18+
"type": "temporary",
19+
"reason": "DockerStart",
20+
"pattern": "Starting Docker Application Container Engine..."
21+
},
22+
{
23+
"type": "temporary",
24+
"reason": "ContainerdStart",
25+
"pattern": "Starting containerd container runtime..."
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)