bitcoiner.social/ansible/group_vars/observability/grafana.yml

46 lines
1.5 KiB
YAML
Raw Permalink Normal View History

--- # grafana.grafana.grafana role variables
# https://github.com/grafana/grafana-ansible-collection
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/
grafana_url: "https://{{ inventory_hostname }}" # required for oauth callbacks
grafana_port: 8043
#grafana_database:
# type: postgres # This only really makes sense if postgres is already in use on this sytem. Otherwise, sqlite is fine.
# host: /var/run/postgresql
# name: grafana
# user: grafana
# password: "{{ lookup('ansible.builtin.env', 'GRAFANA_POSTGRES_PASSWORD') }}"
# max_idle_conn: 2
# max_open_conn: ""
# log_queries: ""
grafana_analytics:
reporting_enabled: false
grafana_snapshots:
external_enabled: false
grafana_users:
allow_sign_up: false
grafana_datasources:
- name: "{{ inventory_hostname }}"
type: "prometheus"
# Note that this depends on the prometheus_web_external_url variable in ansible/sableye/install-prometheus.yml.
url: "http://localhost:9090/prometheus"
access: "proxy" # "server" in the UI
# basicAuth: true
# basicAuthUser: "admin"
# basicAuthPassword: "password"
isDefault: true
jsonData:
tlsAuth: false
tlsAuthWithCACert: false
tlsSkipVerify: true
grafana_dashboards:
- dashboard_id: 1860 # https://grafana.com/grafana/dashboards/1860-node-exporter-full/
revision_id: "{{ grafana_node_dashboard_version|default(31) }}"
datasource: "{{ inventory_hostname }}"
# grafana_smtp:
# host:
# user:
# password:
# from_address: