2015-04-10 04:05:56 -05:00
|
|
|
##################### Grafana Configuration Defaults #####################
|
|
|
|
#
|
|
|
|
# Do not modify this file in grafana installs
|
2015-04-09 10:18:04 -05:00
|
|
|
#
|
2014-10-04 06:33:20 -05:00
|
|
|
|
2015-09-04 02:01:06 -05:00
|
|
|
# possible values : production, development
|
2015-04-10 04:05:56 -05:00
|
|
|
app_mode = production
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
#################################### Paths ####################################
|
2015-04-09 05:16:59 -05:00
|
|
|
[paths]
|
2015-04-23 03:42:04 -05:00
|
|
|
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
|
2015-04-09 10:18:04 -05:00
|
|
|
#
|
2015-04-09 05:16:59 -05:00
|
|
|
data = data
|
2015-04-09 10:18:04 -05:00
|
|
|
#
|
|
|
|
# Directory where grafana can store logs
|
|
|
|
#
|
2015-04-09 05:16:59 -05:00
|
|
|
logs = data/log
|
2015-04-08 07:10:04 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Server ####################################
|
2014-10-04 06:33:20 -05:00
|
|
|
[server]
|
2015-04-09 10:18:04 -05:00
|
|
|
# Protocol (http or https)
|
2014-10-04 06:33:20 -05:00
|
|
|
protocol = http
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# The ip address to bind to, empty will bind to all interfaces
|
2014-10-04 06:33:20 -05:00
|
|
|
http_addr =
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# The http port to use
|
2014-10-04 06:33:20 -05:00
|
|
|
http_port = 3000
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# The public facing domain name used to access grafana from a browser
|
2015-02-16 01:12:07 -06:00
|
|
|
domain = localhost
|
2015-04-09 10:18:04 -05:00
|
|
|
|
2015-05-05 04:21:06 -05:00
|
|
|
# Redirect to correct domain if host header does not match domain
|
|
|
|
# Prevents DNS rebinding attacks
|
|
|
|
enforce_domain = false
|
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# The full public facing url
|
2015-02-16 01:12:07 -06:00
|
|
|
root_url = %(protocol)s://%(domain)s:%(http_port)s/
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# Log web requests
|
2014-10-05 09:50:04 -05:00
|
|
|
router_logging = false
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# the path relative working path
|
2015-01-01 08:29:10 -06:00
|
|
|
static_root_path = public
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# enable gzip
|
2015-03-31 10:42:51 -05:00
|
|
|
enable_gzip = false
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# https certs & key file
|
2015-03-11 13:44:31 -05:00
|
|
|
cert_file =
|
|
|
|
cert_key =
|
2014-10-05 09:50:04 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Database ####################################
|
2015-01-29 07:33:50 -06:00
|
|
|
[database]
|
2015-04-09 10:18:04 -05:00
|
|
|
# Either "mysql", "postgres" or "sqlite3", it's your choice
|
2015-01-29 07:33:50 -06:00
|
|
|
type = sqlite3
|
|
|
|
host = 127.0.0.1:3306
|
|
|
|
name = grafana
|
|
|
|
user = root
|
|
|
|
password =
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# For "postgres" only, either "disable", "require" or "verify-full"
|
2015-01-29 07:33:50 -06:00
|
|
|
ssl_mode = disable
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# For "sqlite3" only, path relative to data_path setting
|
2015-04-08 07:10:04 -05:00
|
|
|
path = grafana.db
|
2015-01-29 07:33:50 -06:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Session ####################################
|
2014-10-05 09:50:04 -05:00
|
|
|
[session]
|
2015-04-23 03:42:04 -05:00
|
|
|
# Either "memory", "file", "redis", "mysql", "postgresql", default is "file"
|
2014-10-05 09:50:04 -05:00
|
|
|
provider = file
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# Provider config options
|
|
|
|
# memory: not have any config yet
|
|
|
|
# file: session dir path, is relative to grafana data_path
|
2015-06-13 13:06:53 -05:00
|
|
|
# redis: config like redis server e.g. `addr=127.0.0.1:6379,pool_size=100,db=grafana`
|
2015-06-05 01:18:17 -05:00
|
|
|
# postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
|
2015-06-22 11:47:46 -05:00
|
|
|
# mysql: go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`
|
2015-04-23 03:42:04 -05:00
|
|
|
|
2015-04-08 07:10:04 -05:00
|
|
|
provider_config = sessions
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# Session cookie name
|
2015-01-01 08:29:10 -06:00
|
|
|
cookie_name = grafana_sess
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# If you use session in https only, default is false
|
2014-10-05 09:50:04 -05:00
|
|
|
cookie_secure = false
|
2015-04-09 10:18:04 -05:00
|
|
|
|
|
|
|
# Session life time, default is 86400
|
2014-10-05 09:50:04 -05:00
|
|
|
session_life_time = 86400
|
2014-10-04 06:33:20 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Analytics ####################################
|
|
|
|
[analytics]
|
|
|
|
# Server reporting, sends usage counters to stats.grafana.org every 24 hours.
|
|
|
|
# No ip addresses are being tracked, only simple counters to track
|
|
|
|
# running instances, dashboard and error counts. It is very helpful to us.
|
|
|
|
# Change this option to false to disable reporting.
|
|
|
|
reporting_enabled = true
|
|
|
|
|
|
|
|
# Google Analytics universal tracking code, only enabled if you specify an id here
|
|
|
|
google_analytics_ua_id =
|
|
|
|
|
2015-08-21 02:30:39 -05:00
|
|
|
# Google Tag Manager ID, only enabled if you specify an id here
|
|
|
|
google_tag_manager_id =
|
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Security ####################################
|
2015-01-27 03:09:54 -06:00
|
|
|
[security]
|
2015-04-09 10:18:04 -05:00
|
|
|
# default admin user, created on startup
|
2015-01-27 03:09:54 -06:00
|
|
|
admin_user = admin
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# default admin password, can be changed before first start of grafana, or in profile settings
|
2015-01-27 03:09:54 -06:00
|
|
|
admin_password = admin
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# used for signing
|
2015-01-27 08:14:53 -06:00
|
|
|
secret_key = SW2YcwTIb9zpOOhoPsMm
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# Auto-login remember days
|
2015-01-27 03:09:54 -06:00
|
|
|
login_remember_days = 7
|
|
|
|
cookie_username = grafana_user
|
|
|
|
cookie_remember_name = grafana_remember
|
2015-01-15 07:44:15 -06:00
|
|
|
|
2015-05-01 01:40:13 -05:00
|
|
|
# disable gravatar profile images
|
|
|
|
disable_gravatar = false
|
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Users ####################################
|
2015-03-11 10:19:29 -05:00
|
|
|
[users]
|
2015-04-09 10:18:04 -05:00
|
|
|
# disable user signup / registration
|
2015-03-11 10:19:29 -05:00
|
|
|
allow_sign_up = true
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# Allow non admin users to create organizations
|
2015-03-11 10:19:29 -05:00
|
|
|
allow_org_create = true
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-03-11 10:19:29 -05:00
|
|
|
# Set to true to automatically assign new users to the default organization (id 1)
|
|
|
|
auto_assign_org = true
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-07-14 07:29:07 -05:00
|
|
|
# Default role new users will be automatically assigned (if auto_assign_org above is set to true)
|
2015-03-11 10:19:29 -05:00
|
|
|
auto_assign_org_role = Viewer
|
2015-01-27 08:14:53 -06:00
|
|
|
|
2015-08-31 04:35:07 -05:00
|
|
|
# Require email validation before sign up completes
|
|
|
|
verify_email_enabled = false
|
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Anonymous Auth ##########################
|
2015-01-27 08:14:53 -06:00
|
|
|
[auth.anonymous]
|
2015-04-09 10:18:04 -05:00
|
|
|
# enable anonymous access
|
2015-01-29 05:10:34 -06:00
|
|
|
enabled = false
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# specify organization name that should be used for unauthenticated users
|
2015-03-12 13:43:52 -05:00
|
|
|
org_name = Main Org.
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# specify role for unauthenticated users
|
2015-03-11 10:19:29 -05:00
|
|
|
org_role = Viewer
|
2014-10-07 16:56:37 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Github Auth ##########################
|
2015-01-07 09:37:24 -06:00
|
|
|
[auth.github]
|
|
|
|
enabled = false
|
2015-04-29 03:33:37 -05:00
|
|
|
allow_sign_up = false
|
2015-01-07 09:37:24 -06:00
|
|
|
client_id = some_id
|
|
|
|
client_secret = some_secret
|
2014-10-07 16:56:37 -05:00
|
|
|
scopes = user:email
|
|
|
|
auth_url = https://github.com/login/oauth/authorize
|
|
|
|
token_url = https://github.com/login/oauth/access_token
|
2015-04-15 01:03:28 -05:00
|
|
|
api_url = https://api.github.com/user
|
2015-04-29 03:33:37 -05:00
|
|
|
team_ids =
|
2015-05-23 09:06:51 -05:00
|
|
|
allowed_organizations =
|
2014-10-07 16:56:37 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Google Auth ##########################
|
2015-01-07 09:37:24 -06:00
|
|
|
[auth.google]
|
|
|
|
enabled = false
|
2015-04-29 03:33:37 -05:00
|
|
|
allow_sign_up = false
|
2015-01-07 09:37:24 -06:00
|
|
|
client_id = some_client_id
|
|
|
|
client_secret = some_client_secret
|
2014-10-07 16:56:37 -05:00
|
|
|
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email
|
|
|
|
auth_url = https://accounts.google.com/o/oauth2/auth
|
|
|
|
token_url = https://accounts.google.com/o/oauth2/token
|
2015-04-15 01:03:28 -05:00
|
|
|
api_url = https://www.googleapis.com/oauth2/v1/userinfo
|
2015-04-13 07:04:52 -05:00
|
|
|
allowed_domains =
|
2014-10-07 16:56:37 -05:00
|
|
|
|
2015-06-30 02:37:52 -05:00
|
|
|
#################################### Basic Auth ##########################
|
|
|
|
[auth.basic]
|
|
|
|
enabled = true
|
|
|
|
|
2015-05-01 04:55:59 -05:00
|
|
|
#################################### Auth Proxy ##########################
|
|
|
|
[auth.proxy]
|
2015-05-02 05:30:53 -05:00
|
|
|
enabled = false
|
2015-05-01 04:55:59 -05:00
|
|
|
header_name = X-WEBAUTH-USER
|
|
|
|
header_property = username
|
|
|
|
auto_sign_up = true
|
|
|
|
|
2015-06-04 02:34:42 -05:00
|
|
|
#################################### Auth LDAP ##########################
|
|
|
|
[auth.ldap]
|
2015-07-15 03:08:23 -05:00
|
|
|
enabled = false
|
|
|
|
config_file = /etc/grafana/ldap.toml
|
2015-06-04 02:34:42 -05:00
|
|
|
|
2015-06-08 10:56:56 -05:00
|
|
|
#################################### SMTP / Emailing ##########################
|
|
|
|
[smtp]
|
|
|
|
enabled = false
|
|
|
|
host = localhost:25
|
|
|
|
user =
|
|
|
|
password =
|
|
|
|
cert_file =
|
|
|
|
key_file =
|
|
|
|
skip_verify = false
|
|
|
|
from_address = admin@grafana.localhost
|
|
|
|
|
|
|
|
[emails]
|
|
|
|
welcome_email_on_sign_up = false
|
2015-06-08 11:25:04 -05:00
|
|
|
templates_pattern = emails/*.html
|
2015-06-08 10:56:56 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### Logging ##########################
|
2014-10-04 06:33:20 -05:00
|
|
|
[log]
|
2015-04-09 10:18:04 -05:00
|
|
|
# Either "console", "file", default is "console"
|
|
|
|
# Use comma to separate multiple modes, e.g. "console, file"
|
2015-04-08 07:10:04 -05:00
|
|
|
mode = console, file
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# Buffer length of channel, keep it as it is if you don't know what it is.
|
2014-10-04 06:33:20 -05:00
|
|
|
buffer_len = 10000
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
|
2015-01-20 02:20:44 -06:00
|
|
|
level = Info
|
2014-10-04 06:33:20 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# For "console" mode only
|
2014-10-04 06:33:20 -05:00
|
|
|
[log.console]
|
|
|
|
level =
|
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# For "file" mode only
|
2014-10-04 06:33:20 -05:00
|
|
|
[log.file]
|
|
|
|
level =
|
2015-04-10 03:58:32 -05:00
|
|
|
# This enables automated log rotate(switch of following options), default is true
|
2014-10-04 06:33:20 -05:00
|
|
|
log_rotate = true
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# Max line number of single file, default is 1000000
|
2014-10-04 06:33:20 -05:00
|
|
|
max_lines = 1000000
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# Max size shift of single file, default is 28 means 1 << 28, 256MB
|
2014-10-04 06:33:20 -05:00
|
|
|
max_lines_shift = 28
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# Segment log daily, default is true
|
2014-10-04 06:33:20 -05:00
|
|
|
daily_rotate = true
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# Expired days of log file(delete after max days), default is 7
|
2014-10-04 06:33:20 -05:00
|
|
|
max_days = 7
|
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
#################################### AMPQ Event Publisher ##########################
|
2015-02-04 08:37:26 -06:00
|
|
|
[event_publisher]
|
2015-02-03 09:57:42 -06:00
|
|
|
enabled = false
|
|
|
|
rabbitmq_url = amqp://localhost/
|
2015-02-04 08:37:26 -06:00
|
|
|
exchange = grafana_events
|
2015-05-11 13:03:57 -05:00
|
|
|
|
|
|
|
#################################### Dashboard JSON files ##########################
|
|
|
|
[dashboards.json]
|
|
|
|
enabled = false
|
2015-05-13 06:36:13 -05:00
|
|
|
path = /var/lib/grafana/dashboards
|
2015-05-11 13:03:57 -05:00
|
|
|
|
|
|
|
|