mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 02:10:45 -06:00
44 lines
1.0 KiB
INI
44 lines
1.0 KiB
INI
# Sample grafana config
|
|
# You only need to specify overrides here
|
|
# Defaults are in the /opt/grafana/current/conf/defaults.ini file
|
|
# This file is never ovewritten when upgrading grafana via deb or rpm package
|
|
|
|
app_mode = production
|
|
|
|
[server]
|
|
; protocol (http or https)
|
|
protocol = http
|
|
; the ip address to bind to, empty will bind to all interfaces
|
|
http_addr =
|
|
; the http port to use
|
|
http_port = 3000
|
|
; The public facing domain name used to access grafana from a browser
|
|
domain = localhost
|
|
; the full public facing url
|
|
root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
|
router_logging = false
|
|
; the path relative to grafana process working directory
|
|
static_root_path = public
|
|
enable_gzip = false
|
|
|
|
[database]
|
|
; Either "mysql", "postgres" or "sqlite3", it's your choice
|
|
type = sqlite3
|
|
host = 127.0.0.1:3306
|
|
name = grafana
|
|
user = root
|
|
password =
|
|
; For "postgres" only, either "disable", "require" or "verify-full"
|
|
ssl_mode = disable
|
|
; For "sqlite3" only
|
|
path = /opt/grafana/data/grafana.db
|
|
|
|
[log]
|
|
level = Trace
|
|
mode = console, file
|
|
root_path = /var/log/grafana
|
|
|
|
|
|
|
|
|