From e885844d1e591bf7543a5d1f36fa6e8eb2db9b4d Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Wed, 2 Feb 2022 02:43:28 +0300 Subject: [PATCH] gatus. Added. --- README.md | 1 + gatus/.env.dist | 1 + gatus/.gitignore | 1 + gatus/README.md | 14 ++++++++++++++ gatus/config.yaml.dist | 34 ++++++++++++++++++++++++++++++++++ gatus/data/.gitignore | 2 ++ gatus/docker-compose.yml | 11 +++++++++++ 7 files changed, 64 insertions(+) create mode 100644 gatus/.env.dist create mode 100644 gatus/.gitignore create mode 100644 gatus/README.md create mode 100644 gatus/config.yaml.dist create mode 100644 gatus/data/.gitignore create mode 100644 gatus/docker-compose.yml diff --git a/README.md b/README.md index 458b8fe..b1c05d9 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ Not every stack is tested to fully work. - [x] Duplicati - [x] Folding@Home +- [x] [Gatus](https://github.com/TwiN/gatus) - [ ] Lidarr (didn't test, may not work) - [x] magnetico-web-telegram - [x] magneticod diff --git a/gatus/.env.dist b/gatus/.env.dist new file mode 100644 index 0000000..cf03be6 --- /dev/null +++ b/gatus/.env.dist @@ -0,0 +1 @@ +HOST_USER=0 diff --git a/gatus/.gitignore b/gatus/.gitignore new file mode 100644 index 0000000..a539470 --- /dev/null +++ b/gatus/.gitignore @@ -0,0 +1 @@ +config.yaml \ No newline at end of file diff --git a/gatus/README.md b/gatus/README.md new file mode 100644 index 0000000..bbd3bc7 --- /dev/null +++ b/gatus/README.md @@ -0,0 +1,14 @@ +# Gatus monitoring + +## Setup + +```shell +cp .env.dist .env +cp config.yaml.dist config.yaml +``` + +Then edit your configuration. + +## Docs + +Check [github.com/TwiN/gatus](https://github.com/TwiN/gatus/blob/master/README.md) for more information. diff --git a/gatus/config.yaml.dist b/gatus/config.yaml.dist new file mode 100644 index 0000000..f6016b0 --- /dev/null +++ b/gatus/config.yaml.dist @@ -0,0 +1,34 @@ +storage: + type: sqlite + path: /data/db.sqlite + +endpoints: + - name: blog-wordpress + group: 01-blog + url: "https://skobk.in/" + interval: 5m + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" +# alerts: +# - type: telegram + + - name: mumble-server-tls + group: 02-services + url: "tls://mumble.skobk.in:64738" + interval: 1m + conditions: + - "[CONNECTED] == true" + - "[CERTIFICATE_EXPIRATION] > 48h" +# alerts: +# - type: telegram + +#alerting: +# telegram: +# token: "token" +# id: "chat_id" +# default-alert: +# enabled: true +# send-on-resolved: true +# failure-threshold: 5 +# success-threshold: 5 \ No newline at end of file diff --git a/gatus/data/.gitignore b/gatus/data/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/gatus/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/gatus/docker-compose.yml b/gatus/docker-compose.yml new file mode 100644 index 0000000..1df0597 --- /dev/null +++ b/gatus/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.9" +services: + gatus: + image: twinproduction/gatus:latest + ports: + - "127.0.0.1:8080:8080" + volumes: + - ./config.yaml:/config/config.yaml:ro + - ./data:/data/ + env_file: .env + user: '${HOST_USER:-0}' \ No newline at end of file