Skip to content

Commit d508cf0

Browse files
authored
Merge pull request #224 from wangzhen127/overlay2
Detect corrupt docker overlay2
2 parents e807235 + 6b983a9 commit d508cf0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

config/docker-monitor-counter.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"plugin": "custom",
3+
"pluginConfig": {
4+
"invoke_interval": "5m",
5+
"timeout": "1m",
6+
"max_output_length": 80,
7+
"concurrency": 1
8+
},
9+
"source": "docker-monitor",
10+
"conditions": [
11+
{
12+
"type": "CorruptDockerOverlay2",
13+
"reason": "NoCorruptDockerOverlay2",
14+
"message": "docker overlay2 is functioning properly"
15+
}
16+
],
17+
"rules": [
18+
{
19+
"type": "permanent",
20+
"condition": "CorruptDockerOverlay2",
21+
"reason": "CorruptDockerOverlay2",
22+
"path": "/home/kubernetes/bin/log-counter",
23+
"args": [
24+
"--journald-source=dockerd",
25+
"--log-path=/var/log/journal",
26+
"--lookback=5m",
27+
"--count=10",
28+
"--pattern=returned error: readlink /var/lib/docker/overlay2.*: invalid argument.*"
29+
],
30+
"timeout": "1m"
31+
}
32+
]
33+
}

0 commit comments

Comments
 (0)