aboutsummaryrefslogtreecommitdiffstats
path: root/roles/grafana/templates/etc-grafana.ini.j2
blob: 8bcad25bdac5e022fd629c1f481d0d8a534aa6ae (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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246

# grafana configuration
# managed by Ansible

app_mode = production
instance_name = <rgoncalves.se monitoring>

[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 }}
;domain = 0.0.0.0

# The full public facing url you use in browser, used for redirects and emails
# If you use reverse proxy and sub path specify full url (with sub path)
;root_url = %(protocol)s://%(domain)s:%(http_port)s/

# Log web requests
router_logging = true
enable_gzip = true

[database]

;type = sqlite3
;host = 127.0.0.1:3306
;name = grafana
;user = root
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
;password =

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

[remote_cache]
type = database

[dataproxy]

[analytics]

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

strict_transport_security = false

[snapshots]
# snapshot sharing options
external_enabled = true
;external_snapshot_url = https://snapshots-origin.raintank.io
;external_snapshot_name = Publish to snapshot.raintank.io

public_mode = false

[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 = dark

[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

[annotations.dashboard]

[explore]
enabled = true

# Metrics available at HTTP API Url /metrics
[metrics]
enabled = true
interval_seconds  = 10
disable_total_stats = false

; basic_auth_username =
; basic_auth_password =

[metrics.environment_info]

[metrics.graphite]
;address =
;prefix = prod.grafana.%(instance_name)s.

[grafana_com]
;url = https://grafana.com

[tracing.jaeger]

[external_image_storage]
;provider =

[external_image_storage.s3]
;endpoint =
;path_style_access =
;bucket =
;region =
;path =
;access_key =
;secret_key =

[external_image_storage.webdav]
;url =
;public_url =
;username =
;password =

[external_image_storage.gcs]
;key_file =
;bucket =
;path =

[external_image_storage.azure_blob]
;account_name =
;account_key =
;container_name =

[external_image_storage.local]

[rendering]

[panels]
disable_sanitize_html = false

[plugins]
enable_alpha = true

[plugin.grafana-image-renderer]

[enterprise]
;license_path =

[feature_toggles]
;enable =

[date_formats]
default_timezone = browser
remember that computers suck.