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.
16 lines
449 B
Django/Jinja
16 lines
449 B
Django/Jinja
apiVersion: 1
|
|
|
|
# Managed by Ansible (roles/grafana). Contains the ntfy access token: mode 0600.
|
|
contactPoints:
|
|
- orgId: 1
|
|
name: ntfy-sys-alerts
|
|
receivers:
|
|
- uid: ntfy_sys_alerts
|
|
type: webhook
|
|
disableResolveMessage: false
|
|
settings:
|
|
url: "{{ grafana_ntfy_webhook_url }}"
|
|
httpMethod: POST
|
|
authorization_scheme: Bearer
|
|
authorization_credentials: "{{ grafana_ntfy_token }}"
|