summaryrefslogtreecommitdiff
path: root/playbooks/roles/mon/templates/volumes/gatus/config/config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/roles/mon/templates/volumes/gatus/config/config.yml')
-rw-r--r--playbooks/roles/mon/templates/volumes/gatus/config/config.yml45
1 files changed, 30 insertions, 15 deletions
diff --git a/playbooks/roles/mon/templates/volumes/gatus/config/config.yml b/playbooks/roles/mon/templates/volumes/gatus/config/config.yml
index 403df4a..e5fcf73 100644
--- a/playbooks/roles/mon/templates/volumes/gatus/config/config.yml
+++ b/playbooks/roles/mon/templates/volumes/gatus/config/config.yml
@@ -19,13 +19,13 @@ endpoints:
- "[BODY] == pat(*OK*)"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "GlobalHealthCheck"
- name: "LDAPS"
url: "tls://{{ idm_domain }}:3636"
- interval: 5m
+ interval: 2m
client:
timeout: 5s
conditions:
@@ -33,10 +33,24 @@ endpoints:
- "[CERTIFICATE_EXPIRATION] > 48h"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "LDAPS"
+ - name: "ssh for git"
+ url: "tls://src.{{ domain }}:2222"
+ interval: 2m
+ client:
+ timeout: 5s
+ conditions:
+ - "[CONNECTED] == true"
+ - "[CERTIFICATE_EXPIRATION] > 48h"
+ alerts:
+ - type: ntfy
+ failure-threshold: 3
+ send-on-resolved: true
+ description: "ssh for git"
+
{% for test in email_tests %}
{% set from_account = (email_accounts | selectattr("email", "equalto", test.from) | list).0 %}
{% set to_account = (email_accounts | selectattr("email", "equalto", test.to) | list).0 %}
@@ -73,7 +87,7 @@ endpoints:
- "[BODY] == pat(*ok*)"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "mail {{ test.name }}"
{% endfor %}
@@ -82,7 +96,7 @@ endpoints:
- name: "mail on port {{ port }}"
group: "mail"
url: "tls://{{ mail_domain }}:{{ port }}"
- interval: 5m
+ interval: 2m
client:
timeout: 5s
conditions:
@@ -90,7 +104,7 @@ endpoints:
- "[CERTIFICATE_EXPIRATION] > 48h"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "mail on port {{ port }}"
{% endfor %}
@@ -100,13 +114,13 @@ endpoints:
- name: "healthcheck {{ user }} pub {{ healthcheck }} 200"
group: "{{ user }}_pub"
url: "{{ healthcheck }}"
- interval: 1m
+ interval: 2m
conditions:
- "[STATUS] == 200"
- "[CERTIFICATE_EXPIRATION] > 240h"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "healthcheck {{ user }} pub {{ healthcheck }} 200"
{% endfor %}
@@ -116,13 +130,13 @@ endpoints:
client:
dns-resolver: "tcp://{{ m.gateway }}:53"
group: "{{ user }}_priv"
- interval: 1m
+ interval: 2m
conditions:
- "[STATUS] == 200"
- "[CERTIFICATE_EXPIRATION] > 240h"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "{{ healthcheck }} priv healthcheck {{ user }}"
@@ -131,12 +145,12 @@ endpoints:
url: "{{ healthcheck }}"
client:
dns-resolver: "tcp://{{ public_resolver }}:53"
- interval: 1m
+ interval: 2m
conditions:
- "[STATUS] == 403"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "{{ healthcheck }} pub healthcheck {{ user }} 403"
{% endfor %}
@@ -144,7 +158,7 @@ endpoints:
- name: "DNS Check [{{ record.name }}_{{ record.type }}]"
group: "{{ user }}_dns_private"
url: "{{ m.gateway }}"
- interval: 5m
+ interval: 2m
dns:
query-name: "{{ record.name }}"
query-type: "{{ record.type }}"
@@ -153,18 +167,19 @@ endpoints:
- "[DNS_RCODE] == NOERROR"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "DNS {{ record.name }}_{{ record.type }}"
- name: "PING {{ record.name }}_{{ record.type }}"
group: "{{ user }}_dns_private"
url: "icmp://{{ record.name }}"
+ interval: 2m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy
- failure-threshold: 1
+ failure-threshold: 3
send-on-resolved: true
description: "PING {{ record.name }}"
{% endfor %}