feat(grafana): provision disk alerts to ntfy

Provision Grafana Unified Alerting as code: ntfy webhook contact point
(?template=grafana), notification policy tree, and cumulative disk tiers
for HDD temperature (48-60C, <20C) plus ZFS/filesystem capacity. Lower the
smartctl exporter interval to 30m for alert responsiveness.
This commit is contained in:
Clément Désiles
2026-09-18 18:32:02 +02:00
parent c127336321
commit be73f3adfa
8 changed files with 887 additions and 2 deletions
+11
View File
@@ -31,3 +31,14 @@ grafana_check_for_updates: false
# Nginx reverse proxy
grafana_nginx_enabled: true
grafana_nginx_hostname: "{{ grafana_domain }}"
# Alerting (Grafana Unified Alerting → ntfy webhook)
# When enabled, provisions disk alert rules (HDD temperature + ZFS/filesystem
# capacity), notification policies and an ntfy contact point using ntfy's
# built-in "grafana" webhook template.
grafana_alerting_enabled: false
# Webhook URL of the target ntfy topic. Keep ?template=grafana so ntfy parses
# Grafana's webhook payload into a readable title/message.
# grafana_ntfy_webhook_url: "https://ntfy.example.com/sys-alerts?template=grafana"
# ntfy access token with write access to the topic (set in inventory/vault).
# grafana_ntfy_token: ""