[checkup][statuspage] Add example configurations

This commit is contained in:
drymer 2018-08-03 07:33:41 +02:00
parent d3458a2e81
commit 712a8c6e23
Signed by: drymer
GPG Key ID: A307D64D5DDFDAAD
2 changed files with 60 additions and 2 deletions

View File

@ -1,4 +1,39 @@
# Checkup
Pretty simple, just execute [checkup](https://github.com/sourcegraph/checkup).
Mount any file on `/checkup`.
Use with
[statuspage](https://git.daemons.it/drymer/dockerfiles/src/branch/master/statuspage).
Example configuration file:
``` json
{
"checkers": [
{
"type": "tls",
"endpoint_name": "WEB Bad Daemons",
"endpoint_url": "daemons.it:443",
"attempts": 5
},
{
"type": "tcp",
"endpoint_name": "TCP WEB Bad Daemons",
"endpoint_url": "daemons.it:443",
"tls": true,
"attempts": 5
}
],
"storage":
{
"provider": "fs",
"dir": "/checkup/check_files",
"url": "http://localhost:2015/check_files"
}
}
```
Example oneliner:
``` bash
docker run -ti -v `pwd`/checkup.json:/checkup/checkup.json -v /etc/ssl/certs:/etc/ssl/certs/ -v `pwd`/check_files:/checkup/check_files registry.daemons.it/checkup
```

View File

@ -2,5 +2,28 @@
Pretty simple, just execute
[statuscheck](https://github.com/sourcegraph/checkup/tree/master/statuspage).
Mount any file on `/statuscheck`. Use with
Use with
[checkup](https://git.daemons.it/drymer/dockerfiles/src/branch/master/checkup).
Example configuration file:
``` json
checkup.config = {
"timeframe": 1 * time.Day,
"refresh_interval": 60,
"storage": {
"url": "http://localhost:2015/check_files"
},
"status_text": {
"healthy": "Situation Normal",
"degraded": "Degraded Service",
"down": "Service Disruption"
}
};
```
Example oneliner:
``` bash
docker run -ti -v `pwd`/config.js:/statuspage/js/config.js -v `pwd`/check_files:/statuspage/check_files -p 2015:2015 registry.daemons.it/statuspage -host localhost
```