Remove gatus group (use host)
This commit is contained in:
parent
44efb8aa71
commit
417a7e2aa3
4 changed files with 5 additions and 43 deletions
|
|
@ -9,7 +9,7 @@ gatus_federation_tester: "https://federationtester.matrix.org/api/report?server_
|
|||
gatus_endpoints_other:
|
||||
- name: matrix-federation
|
||||
url: "{{ gatus_federation_tester }}"
|
||||
group: 9-external
|
||||
group: external
|
||||
interval: 5m
|
||||
conditions:
|
||||
- '[STATUS] == 200'
|
||||
|
|
@ -23,7 +23,7 @@ gatus_endpoints_other:
|
|||
send-on-resolved: true
|
||||
- name: healthchecks-io
|
||||
url: "{{ opentofu.healthchecksio.status.ping_url }}"
|
||||
group: 9-external
|
||||
group: external
|
||||
interval: 5m
|
||||
conditions:
|
||||
- '[STATUS] == 200'
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class FilterModule(object):
|
|||
result.append({
|
||||
"name": host["hostname"],
|
||||
"url": f"icmp://{host['fqdn']}",
|
||||
"group": "1-hosts",
|
||||
"group": host["hostname"],
|
||||
"conditions": [
|
||||
"[CONNECTED] == true",
|
||||
],
|
||||
|
|
@ -45,7 +45,7 @@ class FilterModule(object):
|
|||
continue
|
||||
result.append({
|
||||
"name": f"backup@{name}",
|
||||
"group": "8-backups",
|
||||
"group": name,
|
||||
"token": host_data["host_backup_gatus_token"],
|
||||
"alerts": backup_alerts,
|
||||
})
|
||||
|
|
@ -85,7 +85,7 @@ class FilterModule(object):
|
|||
|
||||
new_endpoint = {
|
||||
"name": name,
|
||||
"group": mon.get("group"),
|
||||
"group": service.get("host"),
|
||||
"url": url,
|
||||
"conditions": conditions,
|
||||
"interval": mon.get("interval"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue