summaryrefslogtreecommitdiff
path: root/roles/monitoring/grafana/defaults/main.yml
blob: 20b886ca08433be2340e891aebb336295636bb8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
# grafana_version:

# grafana_secret_key:  <--- pwgen -s 64 -1
grafana_root_url: "%(protocol)s://%(domain)s:%(http_port)s/grafana"

grafana_config_server:
  http_addr: localhost
  http_port: 3000
  root_url: "{{ grafana_root_url }}"
  serve_from_sub_path: true

grafana_config_analytics:
  reporting_enabled: false
  check_for_updates: false

grafana_config_security:
  secret_key: "{{ grafana_secret_key }}"
  disable_gravatar: true

grafana_config_users:
  allow_sign_up: false
  allow_org_create: false

grafana_config_auth: {}
#  disable_signout_menu: true

grafana_config_auth_proxy: {}
#  enabled: true
#  whitelist: 127.0.0.1


grafana_datasources: []
#  - name: "Prometheus"
#    type: "prometheus"
#    access: "proxy"
#    url: "http://prometheus.mydomain"
#    basicAuth: true
#    basicAuthUser: "admin"
#    isDefault: true
#    secureJsonData:
#      basicAuthPassword: "password"
#    jsonData:
#      tlsAuth: false
#      tlsAuthWithCACert: false
#      tlsSkipVerify: true

grafana_dashboards: []
#  - file: node-full
#    datasource: "Prometheus"
#  - file: chrony
#    datasource: "Prometheus"
#  - file: environment-sensors
#    datasource: "Prometheus"
#  - content: '... json-data ...'
#    name: bar
#    datasource: "Graphite"
#  - id: 19
#    revision: 3
#    datasource: "Foo"

grafana_admin_password: "{{ undef(hint='Please specify the password for the grafana admin user') }}"

grafana_users: {}
  # foo:
  #   password: somewhat-secret
  #   name: Foo Bar
  #   email: foo@bar.com
  # root:
  #   password: very-secret
  #   name: The Root
  #   email: root@toor.com
  #   is_admin: yes