aboutsummaryrefslogtreecommitdiffstats
path: root/roles/grafana/templates/grafana.ini.j2
blob: 720352bd2fc11b765a95f389eaded30736782d0e (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# managed by Ansible

app_mode = production
instance_name = <{{ grafana_instance_name }}>

[paths]
data = {{ grafana_dir }}/data
logs = {{ grafana_dir }}/logs
plugins = {{ grafana_dir }}/plugins
provisioning = provisioning
temp_data_lifetime = 24h

[server]
protocol = http
http_addr =
http_port = {{ grafana_port }}
router_logging = true
enable_gzip = true

; domain = 0.0.0.0
; root_url = %(protocol)s://%(domain)s:%(http_port)s/

[database]
; type = sqlite3
; host = 127.0.0.1:3306
; name = grafana
; user = root
; password =

path = grafana.db
max_idle_conn = 2
log_queries = true
cache_mode = shared

[remote_cache]
type = database

[security]
disable_initial_admin_creation = true
disable_gravatar = true
allow_embedding = true
strict_transport_security = false

[snapshots]
external_enabled = true
public_mode = {{ grafana_is_public }}

; external_snapshot_url = https://snapshots-origin.raintank.io
; external_snapshot_name = Publish to snapshot.raintank.io

[dashboards]
versions_to_keep = 20
min_refresh_interval = 5s
default_home_dashboard_path =

[users]
allow_sign_up = false
allow_org_create = false
auto_assign_org = false
auto_assign_org_role = Viewer
verify_email_enabled = false
login_hint = email or username
password_hint = password
viewers_can_edit = true
editors_can_admin = false
user_invite_max_lifetime_duration = 24h
default_theme = {{ grafana_default_theme }}

[auth]
login_cookie_name = grafana_session

[auth.anonymous]
enabled = false

[auth.github]
enabled = false

[auth.gitlab]
enabled = false

[auth.google]
enabled = false

[auth.grafana_com]
enabled = false

[auth.azuread]
enabled = false

[auth.okta]
enabled = false

[auth.generic_oauth]
enabled = false

[auth.basic]
enabled = true

[auth.proxy]
enabled = false

[auth.ldap]
enabled = false
config_file = /etc/grafana/ldap.toml
allow_sign_up = true

[smtp]
enabled = false

[emails]
welcome_email_on_sign_up = false
templates_pattern = emails/*.html

[log]
mode = console file
level = info
filters =

[log.console]
level =
format = console

[log.file]
level =
format = text
log_rotate = true
max_lines = 1000000
max_size_shift = 28
daily_rotate = true
max_days = 7

[log.syslog]
level =
format = text
network =
address =
facility =
tag =

[quota]
enabled = false

[alerting]
enabled = true
execute_alerts = true
error_or_timeout = alerting
nodata_or_nullvalues = no_data
concurrent_render_limit = 5

; evaluation_timeout_seconds = 30
; notification_timeout_seconds = 30
; max_attempts = 3
; min_interval_seconds = 1

[explore]
enabled = true

[metrics]
enabled = true
interval_seconds  = 10
disable_total_stats = false

; basic_auth_username =
; basic_auth_password =

[panels]
disable_sanitize_html = false

[plugins]
enable_alpha = true

[plugin.grafana-image-renderer]

[date_formats]
default_timezone = browser
remember that computers suck.