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
|
|
|
|
2016-06-02 07:32:17 -05:00
|
|
|
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
|
|
|
|
instance_name = ${HOSTNAME}
|
|
|
|
|
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-12-15 04:21:00 -06:00
|
|
|
#
|
|
|
|
# Directory where grafana will automatically scan and look for plugins
|
|
|
|
#
|
|
|
|
plugins = data/plugins
|
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
|
|
|
|
2015-11-24 10:17:21 -06:00
|
|
|
# For "postgres", use either "disable", "require" or "verify-full"
|
|
|
|
# For "mysql", use either "true", "false", or "skip-verify".
|
2015-01-29 07:33:50 -06:00
|
|
|
ssl_mode = disable
|
2015-04-09 10:18:04 -05:00
|
|
|
|
2015-11-24 10:17:21 -06:00
|
|
|
ca_cert_path =
|
|
|
|
client_key_path =
|
|
|
|
client_cert_path =
|
|
|
|
server_cert_name =
|
|
|
|
|
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-12-08 07:35:09 -06:00
|
|
|
# Either "memory", "file", "redis", "mysql", "postgres", "memcache", 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-12-23 15:06:28 -06:00
|
|
|
# mysql: go-sql-driver/mysql dsn config string, examples:
|
|
|
|
# `user:password@tcp(127.0.0.1:3306)/database_name`
|
2015-12-23 15:15:59 -06:00
|
|
|
# `user:password@unix(/var/run/mysqld/mysqld.sock)/database_name`
|
2015-12-08 07:35:09 -06:00
|
|
|
# memcache: 127.0.0.1:11211
|
|
|
|
|
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
|
2015-09-11 10:17:10 -05:00
|
|
|
gc_interval_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
|
|
|
|
|
2016-04-11 11:21:48 -05:00
|
|
|
# Set to false to disable all checks to https://grafana.net
|
|
|
|
# for new vesions (grafana itself and plugins), check is used
|
|
|
|
# in some UI views to notify that grafana or plugin update exists
|
|
|
|
# This option does not cause any auto updates, nor send any information
|
|
|
|
# only a GET request to http://grafana.net to get latest versions
|
|
|
|
check_for_updates = true
|
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# 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
|
|
|
|
|
2016-05-22 19:32:18 -05:00
|
|
|
# data source proxy whitelist (ip_or_domain:port separated by spaces)
|
2015-09-09 10:21:25 -05:00
|
|
|
data_source_proxy_whitelist =
|
|
|
|
|
2015-10-14 09:39:57 -05:00
|
|
|
[snapshots]
|
|
|
|
# snapshot sharing options
|
|
|
|
external_enabled = true
|
|
|
|
external_snapshot_url = https://snapshots-origin.raintank.io
|
|
|
|
external_snapshot_name = Publish to snapshot.raintank.io
|
|
|
|
|
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-08-20 13:20:40 -05:00
|
|
|
# Background text for the user field on the login page
|
|
|
|
login_hint = email or username
|
|
|
|
|
2016-05-12 07:11:10 -05:00
|
|
|
# Default UI theme ("dark" or "light")
|
|
|
|
default_theme = dark
|
|
|
|
|
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]
|
2016-05-09 02:21:33 -05:00
|
|
|
# Either "console", "file", "syslog". Default is console and file
|
2016-06-07 05:11:41 -05:00
|
|
|
# Use space 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
|
|
|
|
2016-06-08 01:48:46 -05:00
|
|
|
# Either "trace", "debug", "info", "warn", "error", "critical", default is "info"
|
|
|
|
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 =
|
2016-06-08 01:48:46 -05:00
|
|
|
|
|
|
|
# log line format, valid options are text, console and json
|
|
|
|
format = console
|
2014-10-04 06:33:20 -05:00
|
|
|
|
2015-04-09 10:18:04 -05:00
|
|
|
# For "file" mode only
|
2014-10-04 06:33:20 -05:00
|
|
|
[log.file]
|
|
|
|
level =
|
2016-06-08 01:48:46 -05:00
|
|
|
|
|
|
|
# log line format, valid options are text, console and json
|
|
|
|
format = text
|
|
|
|
|
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
|
2016-06-06 16:06:44 -05:00
|
|
|
max_size_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-11-07 20:06:31 -06:00
|
|
|
[log.syslog]
|
|
|
|
level =
|
2016-06-08 01:48:46 -05:00
|
|
|
|
|
|
|
# log line format, valid options are text, console and json
|
|
|
|
format = text
|
|
|
|
|
2015-11-07 20:06:31 -06:00
|
|
|
# Syslog network type and address. This can be udp, tcp, or unix. If left blank, the default unix endpoints will be used.
|
|
|
|
network =
|
|
|
|
address =
|
|
|
|
|
|
|
|
# Syslog facility. user, daemon and local0 through local7 are valid.
|
|
|
|
facility =
|
|
|
|
|
|
|
|
# Syslog tag. By default, the process' argv[0] is used.
|
|
|
|
tag =
|
|
|
|
|
2016-06-08 01:48:46 -05:00
|
|
|
|
2016-06-08 00:27:52 -05:00
|
|
|
#################################### AMQP 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
|
|
|
|
2015-09-11 10:17:10 -05:00
|
|
|
#################################### Usage Quotas ##########################
|
2015-07-20 07:51:27 -05:00
|
|
|
[quota]
|
2015-09-10 12:47:33 -05:00
|
|
|
enabled = false
|
|
|
|
|
2015-09-11 10:17:10 -05:00
|
|
|
#### set quotas to -1 to make unlimited. ####
|
|
|
|
# limit number of users per Org.
|
|
|
|
org_user = 10
|
|
|
|
|
|
|
|
# limit number of dashboards per Org.
|
|
|
|
org_dashboard = 100
|
|
|
|
|
|
|
|
# limit number of data_sources per Org.
|
|
|
|
org_data_source = 10
|
|
|
|
|
|
|
|
# limit number of api_keys per Org.
|
|
|
|
org_api_key = 10
|
|
|
|
|
|
|
|
# limit number of orgs a user can create.
|
|
|
|
user_org = 10
|
|
|
|
|
|
|
|
# Global limit of users.
|
|
|
|
global_user = -1
|
|
|
|
|
|
|
|
# global limit of orgs.
|
|
|
|
global_org = -1
|
|
|
|
|
|
|
|
# global limit of dashboards
|
|
|
|
global_dashboard = -1
|
|
|
|
|
|
|
|
# global limit of api_keys
|
|
|
|
global_api_key = -1
|
|
|
|
|
|
|
|
# global limit on number of logged in users.
|
|
|
|
global_session = -1
|
2016-06-02 14:06:49 -05:00
|
|
|
|
|
|
|
#################################### Internal Grafana Metrics ##########################
|
2016-06-16 01:06:43 -05:00
|
|
|
# Metrics available at HTTP API Url /api/metrics
|
2016-06-02 14:06:49 -05:00
|
|
|
[metrics]
|
2016-06-03 11:38:19 -05:00
|
|
|
enabled = true
|
|
|
|
interval_seconds = 60
|
2016-06-02 14:06:49 -05:00
|
|
|
|
2016-06-16 01:06:43 -05:00
|
|
|
# Send internal Grafana metrics to graphite
|
2016-06-03 11:38:19 -05:00
|
|
|
; [metrics.graphite]
|
|
|
|
; address = localhost:2003
|
|
|
|
; prefix = prod.grafana.%(instance_name)s.
|
2016-06-02 14:06:49 -05:00
|
|
|
|
2016-05-27 06:52:19 -05:00
|
|
|
[grafana_net]
|
|
|
|
url = https://grafana.net
|