Skip to content

Commit

Permalink
Detect corrupt docker overlay2
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzhen127 committed Nov 27, 2018
1 parent e807235 commit 6b983a9
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions config/docker-monitor-counter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"plugin": "custom",
"pluginConfig": {
"invoke_interval": "5m",
"timeout": "1m",
"max_output_length": 80,
"concurrency": 1
},
"source": "docker-monitor",
"conditions": [
{
"type": "CorruptDockerOverlay2",
"reason": "NoCorruptDockerOverlay2",
"message": "docker overlay2 is functioning properly"
}
],
"rules": [
{
"type": "permanent",
"condition": "CorruptDockerOverlay2",
"reason": "CorruptDockerOverlay2",
"path": "/home/kubernetes/bin/log-counter",
"args": [
"--journald-source=dockerd",
"--log-path=/var/log/journal",
"--lookback=5m",
"--count=10",
"--pattern=returned error: readlink /var/lib/docker/overlay2.*: invalid argument.*"
],
"timeout": "1m"
}
]
}

0 comments on commit 6b983a9

Please sign in to comment.