From f6da44e00f477bc13eb408e951d1dfbeb31890ed Mon Sep 17 00:00:00 2001 From: Erik Grobecker Date: Sun, 29 Dec 2024 14:33:54 +0100 Subject: [PATCH] seems like I forgor to implement alerting in gatus... --- docker/gatus/config/config.yaml | 9 +++++++++ docs/gatus.md | 15 +++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/docker/gatus/config/config.yaml b/docker/gatus/config/config.yaml index 3084d83..d021c0c 100644 --- a/docker/gatus/config/config.yaml +++ b/docker/gatus/config/config.yaml @@ -2,6 +2,15 @@ storage: type: sqlite path: /data/data.db +alerting: + ntfy: + url: "https://ntfy.grobecker.me" + topic: "status" + priority: 2 + default-alert: + failure-threshold: 3 + send-on-resolved: true + endpoints: - name: homepage group: exposed diff --git a/docs/gatus.md b/docs/gatus.md index 18af2f6..a3c1bd9 100644 --- a/docs/gatus.md +++ b/docs/gatus.md @@ -56,3 +56,18 @@ endpoints: - "[STATUS] == 200" - "[CERTIFICATE_EXPIRATION] > 48h" ``` + +## Alerting + +Currently _Gatus_ notifies me using _ntfy_ as soon as a service fails **three times**, which is implemented below: + +```yaml +alerting: + ntfy: + url: "https://ntfy.grobecker.me" + topic: "status" + priority: 2 + default-alert: + failure-threshold: 3 + send-on-resolved: true +```