1
0
Fork 0

Make grafana paths configurable.

This commit is contained in:
abednarik 2017-08-04 12:36:22 -03:00
parent f91843bc99
commit 69e22ffac2
2 changed files with 5 additions and 3 deletions

View File

@ -11,11 +11,11 @@
[paths] [paths]
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used) # Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
# #
;data = /var/lib/grafana data = {{ server.paths.data }}
# #
# Directory where grafana can store logs # Directory where grafana can store logs
# #
;logs = /var/log/grafana logs = {{ server.paths.logs }}
#################################### Server #################################### #################################### Server ####################################
[server] [server]
@ -288,4 +288,3 @@ path = {{ server.dashboards.path }}
;enabled = false ;enabled = false
;path = /var/lib/grafana/dashboards ;path = /var/lib/grafana/dashboards
{%- endif %} {%- endif %}

View File

@ -4,6 +4,9 @@ Debian:
pkgs: pkgs:
- grafana - grafana
service: grafana-server service: grafana-server
paths:
data: /var/lib/grafana
logs: /var/log/grafana
bind: bind:
address: 0.0.0.0 address: 0.0.0.0
port: 3000 port: 3000