Files
ansible-playbooks/roles/grafana/defaults/main.yml
T
Clément Désiles be73f3adfa 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.
2026-09-18 18:32:02 +02:00

45 lines
1.7 KiB
YAML

---
# Grafana version
grafana_version: "stable"
# Network configuration
grafana_http_port: 3200
grafana_domain: grafana.nas.local
grafana_root_url: "https://{{ grafana_domain }}"
# PostgreSQL Database configuration
# The user and database will be created by this role.
# REQUIRED: The password must be set in your inventory (e.g., in inventory/host_vars/your_host.yml).
grafana_postgres_type: postgres
grafana_postgres_host: 127.0.0.1
grafana_postgres_port: 5432
grafana_postgres_db_name: grafana
grafana_postgres_user: grafana
# grafana_postgres_password: "" # Intentionally undefined - role will fail if not set
grafana_postgres_ssl_mode: "prefer" # 'disable', 'allow', 'prefer', 'require', 'verify-ca', 'verify-full'
# Security
# REQUIRED: These values must be set in your inventory.
grafana_admin_user: admin
# grafana_admin_password: "" # Intentionally undefined - role will fail if not set
# grafana_secret_key: "" # Intentionally undefined - role will fail if not set
# Analytics
grafana_reporting_enabled: false
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: ""