k3s/namespaces/monitoring/gatus/base-config.yaml
2025-04-28 17:41:34 -04:00

107 lines
2.4 KiB
YAML

config.yaml: |
metrics: true
ui:
title: "JLP Homelab Health | Gatus"
skip-invalid-config-update: true
storage:
type: postgres
caching: true
path: "postgres://gatus:${POSTGRES_PASSWORD}@postgres-svc.core.svc.cluster.local:5432/gatus?sslmode=disable"
alerting:
ntfy:
url: https://ntfy.leechpepin.com
topic: ${NTFY_TOPIC}
token: ${NTFY_TOKEN}
disable-firebase: true
defaultAlert:
description: "healthcheck failed"
enabled: true
send-on-resolved: true
success-threshold: 3
failure-threshold: 3
endpoints:
# Self
- name: Gatus
url: http://gatus-svc.monitoring.svc.cluster.local:8080/health
group: Internal/Monitoring
interval: 5m
conditions:
- "[STATUS] == 200"
alerts:
- type: ntfy
# Static Sites
- name: Blog
url: https://blog.leechpepin.com
group: Static Pages
interval: 5m
conditions:
- "[STATUS] == 200"
alerts:
- type: ntfy
- name: Techdocs
url: https://docs.leechpepin.com
group: Static Pages
interval: 5m
conditions:
- "[STATUS] == 200"
alerts:
- type: ntfy
# Server pings
- name: Arthur
url: "icmp://arthur.leechpepin.tailnet"
group: Servers
interval: 5m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy
- name: Blackstaff
url: "icmp://blackstaff.leechpepin.tailnet"
group: Servers
interval: 5m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy
- name: dresden
url: "icmp://dresden.leechpepin.tailnet"
group: Servers
interval: 5m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy
- name: jlpgreencloud
url: "icmp://jlpgreencloud.leechpepin.tailnet"
group: Servers
interval: 5m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy
- name: jlpks8888
url: "icmp://jlpks8888.leechpepin.tailnet"
group: Servers
interval: 5m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy
- name: jlpatl
url: "icmp://jlpatl.leechpepin.tailnet"
group: Servers
interval: 5m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy
- name: Headscale
url: "icmp://headscale.leechpepin.tailnet"
group: Servers
interval: 5m
conditions:
- "[CONNECTED] == true"
alerts:
- type: ntfy