From d5e324a93f8654fc14f74b329b3e2bc0e9c7acd8 Mon Sep 17 00:00:00 2001 From: Erik Grobecker Date: Sun, 29 Dec 2024 13:41:13 +0100 Subject: [PATCH] added my gatus config --- docker/gatus/compose.yml | 12 +++ docker/gatus/config/config.yaml | 164 ++++++++++++++++++++++++++++++++ 2 files changed, 176 insertions(+) create mode 100644 docker/gatus/compose.yml create mode 100644 docker/gatus/config/config.yaml diff --git a/docker/gatus/compose.yml b/docker/gatus/compose.yml new file mode 100644 index 0000000..6d1e7e2 --- /dev/null +++ b/docker/gatus/compose.yml @@ -0,0 +1,12 @@ +services: + gatus: + image: twinproduction/gatus + container_name: gatus + ports: + - 53195:8080 + volumes: + - ./config:/config + - ./data:/data + labels: + - "diun.enable=true" + restart: always diff --git a/docker/gatus/config/config.yaml b/docker/gatus/config/config.yaml new file mode 100644 index 0000000..57c4a49 --- /dev/null +++ b/docker/gatus/config/config.yaml @@ -0,0 +1,164 @@ +storage: + type: sqlite + path: /data/data.db + +endpoints: + - name: dashy + group: core + url: "https://grobecker.me" + interval: 5m + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + + - name: forgejo + group: microservices + url: "https://git.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: stirling + group: microservices + url: "https://pdf.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: memos + group: microservices + url: "https://memos.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: Seafile + group: microservices + url: "https://files.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: archivebox + group: microservices + url: "https://archive.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: hedgedoc + group: microservices + url: "https://md.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: nextcloud + group: microservices + url: "https://nx41088.your-storageshare.de" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: it-tools + group: microservices + url: "https://tools.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: ntfy + group: microservices + url: "https://ntfy.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: vaultwarden + group: microservices + url: "https://vault.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + + - name: webui + group: mail + url: "https://mail.grobecker.me" + conditions: + - "[STATUS] == 200" + - "[CERTIFICATE_EXPIRATION] > 48h" + - name: starttls-smtp + group: mail + url: "starttls://mail.grobecker.me:587" + interval: 30m + client: + timeout: 5s + conditions: + - "[CONNECTED] == true" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: tls-imap + group: mail + url: "tls://mail.grobecker.me:993" + interval: 30m + client: + timeout: 5s + conditions: + - "[CONNECTED] == true" + - "[CERTIFICATE_EXPIRATION] > 48h" + alerts: + - type: ntfy + - name: mail-ipv4-dns-query + url: "8.8.8.8" # Address of the DNS server to use + group: mail + dns: + query-name: "mail.grobecker.me" + query-type: "A" + conditions: + - "[BODY] == 91.107.207.162" + - "[DNS_RCODE] == NOERROR" + alerts: + - type: ntfy + - name: mail-ipv6-dns-query + url: "8.8.8.8" # Address of the DNS server to use + group: mail + dns: + query-name: "mail.grobecker.me" + query-type: "AAAA" + conditions: + - "[BODY] == 2a01:4f8:c012:a8bb::1" + - "[DNS_RCODE] == NOERROR" + alerts: + - type: ntfy + - name: mail-mx-dns-query + url: "8.8.8.8" # Address of the DNS server to use + group: mail + dns: + query-name: "grobecker.me" + query-type: "MX" + conditions: + - "[BODY] == mail.grobecker.me." + - "[DNS_RCODE] == NOERROR" + alerts: + - type: ntfy + +alerting: + ntfy: + url: "https://ntfy.grobecker.me" + topic: "status" + priority: 2 + default-alert: + failure-threshold: 3 + send-on-resolved: true