-
Notifications
You must be signed in to change notification settings - Fork 641
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e807235
commit 6b983a9
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |