2015-04-09 10:18:04 -05:00
|
|
|
##################### Grafana Configuration Example #####################
|
2015-04-10 03:58:32 -05:00
|
|
|
#
|
|
|
|
# Everything has defaults so you only need to uncomment things you want to
|
|
|
|
# change
|
2015-03-03 03:18:24 -06:00
|
|
|
|
2015-09-09 10:21:25 -05:00
|
|
|
# possible values : production, development
|
2015-04-09 10:18:04 -05:00
|
|
|
; app_mode = production
|
2015-03-03 03:18:24 -06: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 ####################################
|
|
|
|
[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
|
|
|
#
|
|
|
|
;data = /var/lib/grafana
|
|
|
|
#
|
|
|
|
# Directory where grafana can store logs
|
|
|
|
#
|
|
|
|
;logs = /var/log/grafana
|
2015-12-15 04:21:00 -06:00
|
|
|
#
|
|
|
|
# Directory where grafana will automatically scan and look for plugins
|
|
|
|
#
|
|
|
|
;plugins = /var/lib/grafana/plugins
|
2015-04-08 07:10:04 -05:00
|
|
|
|
2015-12-15 04:21:00 -06:00
|
|
|
#
|
2015-04-10 03:58:32 -05:00
|
|
|
#################################### Server ####################################
|
2015-03-03 03:18:24 -06:00
|
|
|
[server]
|
2015-04-10 03:58:32 -05:00
|
|
|
# Protocol (http or https)
|
2015-04-09 10:18:04 -05:00
|
|
|
;protocol = http
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# The ip address to bind to, empty will bind to all interfaces
|
2015-04-09 10:18:04 -05:00
|
|
|
;http_addr =
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# The http port to use
|
2015-04-09 10:18:04 -05:00
|
|
|
;http_port = 3000
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# The public facing domain name used to access grafana from a browser
|
2015-04-09 10:18:04 -05:00
|
|
|
;domain = localhost
|
2015-04-10 03:58:32 -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
|
|
|
|
|
2016-07-05 07:10:23 -05:00
|
|
|
# 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 = http://localhost:3000
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# Log web requests
|
2015-04-09 10:18:04 -05:00
|
|
|
;router_logging = false
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# the path relative working path
|
2015-04-09 10:18:04 -05:00
|
|
|
;static_root_path = public
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# enable gzip
|
2015-04-09 10:18:04 -05:00
|
|
|
;enable_gzip = false
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# https certs & key file
|
2015-04-09 10:18:04 -05:00
|
|
|
;cert_file =
|
|
|
|
;cert_key =
|
2015-03-12 04:52:29 -05:00
|
|
|
|
2015-04-10 03:58:32 -05:00
|
|
|
#################################### Database ####################################
|
|
|
|
[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 relative to data_path setting
|
|
|
|
;path = grafana.db
|
|
|
|
|
|
|
|
#################################### Session ####################################
|
|
|
|
[session]
|
2015-09-09 13:06:14 -05:00
|
|
|
# Either "memory", "file", "redis", "mysql", "postgres", default is "file"
|
2015-04-10 03:58:32 -05:00
|
|
|
;provider = file
|
|
|
|
|
|
|
|
# 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-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-06-05 01:18:17 -05:00
|
|
|
# postgres: user=a password=b host=localhost port=5432 dbname=c sslmode=disable
|
2015-04-10 03:58:32 -05:00
|
|
|
;provider_config = sessions
|
|
|
|
|
|
|
|
# Session cookie name
|
|
|
|
;cookie_name = grafana_sess
|
|
|
|
|
|
|
|
# If you use session in https only, default is false
|
|
|
|
;cookie_secure = false
|
|
|
|
|
|
|
|
# Session life time, default is 86400
|
|
|
|
;session_life_time = 86400
|
|
|
|
|
|
|
|
#################################### 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-10 03:58:32 -05:00
|
|
|
# Google Analytics universal tracking code, only enabled if you specify an id here
|
|
|
|
;google_analytics_ua_id =
|
|
|
|
|
|
|
|
#################################### Security ####################################
|
|
|
|
[security]
|
|
|
|
# default admin user, created on startup
|
|
|
|
;admin_user = admin
|
|
|
|
|
|
|
|
# default admin password, can be changed before first start of grafana, or in profile settings
|
|
|
|
;admin_password = admin
|
|
|
|
|
|
|
|
# used for signing
|
|
|
|
;secret_key = SW2YcwTIb9zpOOhoPsMm
|
|
|
|
|
|
|
|
# Auto-login remember days
|
|
|
|
;login_remember_days = 7
|
|
|
|
;cookie_username = grafana_user
|
|
|
|
;cookie_remember_name = grafana_remember
|
|
|
|
|
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-10 03:58:32 -05:00
|
|
|
#################################### Users ####################################
|
|
|
|
[users]
|
|
|
|
# disable user signup / registration
|
|
|
|
;allow_sign_up = true
|
|
|
|
|
|
|
|
# Allow non admin users to create organizations
|
|
|
|
;allow_org_create = true
|
|
|
|
|
|
|
|
# Set to true to automatically assign new users to the default organization (id 1)
|
|
|
|
;auto_assign_org = true
|
|
|
|
|
|
|
|
# Default role new users will be automatically assigned (if disabled above is set to true)
|
|
|
|
;auto_assign_org_role = Viewer
|
|
|
|
|
2015-08-20 13:15:36 -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-10 03:58:32 -05:00
|
|
|
#################################### Anonymous Auth ##########################
|
|
|
|
[auth.anonymous]
|
|
|
|
# enable anonymous access
|
|
|
|
;enabled = false
|
|
|
|
|
|
|
|
# specify organization name that should be used for unauthenticated users
|
|
|
|
;org_name = Main Org.
|
|
|
|
|
|
|
|
# specify role for unauthenticated users
|
|
|
|
;org_role = Viewer
|
|
|
|
|
|
|
|
#################################### Github Auth ##########################
|
|
|
|
[auth.github]
|
|
|
|
;enabled = false
|
2015-04-29 03:33:37 -05:00
|
|
|
;allow_sign_up = false
|
2015-04-10 03:58:32 -05:00
|
|
|
;client_id = some_id
|
|
|
|
;client_secret = some_secret
|
2015-05-23 09:06:51 -05:00
|
|
|
;scopes = user:email,read:org
|
2015-04-10 03:58:32 -05:00
|
|
|
;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:08:01 -05:00
|
|
|
;team_ids =
|
2015-05-23 09:06:51 -05:00
|
|
|
;allowed_organizations =
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
#################################### Google Auth ##########################
|
|
|
|
[auth.google]
|
|
|
|
;enabled = false
|
2015-04-29 03:33:37 -05:00
|
|
|
;allow_sign_up = false
|
2015-04-10 03:58:32 -05:00
|
|
|
;client_id = some_client_id
|
|
|
|
;client_secret = some_client_secret
|
|
|
|
;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-29 03:08:01 -05:00
|
|
|
;allowed_domains =
|
2015-04-10 03:58:32 -05:00
|
|
|
|
2015-05-02 05:30:53 -05:00
|
|
|
#################################### Auth Proxy ##########################
|
|
|
|
[auth.proxy]
|
|
|
|
;enabled = false
|
|
|
|
;header_name = X-WEBAUTH-USER
|
|
|
|
;header_property = username
|
|
|
|
;auto_sign_up = true
|
|
|
|
|
2015-06-30 02:37:52 -05:00
|
|
|
#################################### Basic Auth ##########################
|
|
|
|
[auth.basic]
|
|
|
|
;enabled = true
|
|
|
|
|
2015-07-15 03:08:23 -05:00
|
|
|
#################################### Auth LDAP ##########################
|
|
|
|
[auth.ldap]
|
2015-07-15 07:48:39 -05:00
|
|
|
;enabled = false
|
|
|
|
;config_file = /etc/grafana/ldap.toml
|
2015-07-15 03:08:23 -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-04-10 03:58:32 -05:00
|
|
|
#################################### Logging ##########################
|
|
|
|
[log]
|
2016-05-09 02:21:33 -05:00
|
|
|
# Either "console", "file", "syslog". Default is console and file
|
2016-06-08 01:48:46 -05:00
|
|
|
# Use space to separate multiple modes, e.g. "console file"
|
2015-04-10 03:58:32 -05:00
|
|
|
;mode = console, file
|
|
|
|
|
2016-06-08 01:48:46 -05:00
|
|
|
# Either "trace", "debug", "info", "warn", "error", "critical", default is "info"
|
|
|
|
;level = info
|
2015-04-10 03:58:32 -05:00
|
|
|
|
|
|
|
# For "console" mode only
|
|
|
|
[log.console]
|
|
|
|
;level =
|
|
|
|
|
2016-06-08 01:48:46 -05:00
|
|
|
# log line format, valid options are text, console and json
|
|
|
|
;format = console
|
|
|
|
|
2015-04-10 03:58:32 -05:00
|
|
|
# For "file" mode only
|
|
|
|
[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
|
|
|
|
;log_rotate = true
|
|
|
|
|
|
|
|
# Max line number of single file, default is 1000000
|
|
|
|
;max_lines = 1000000
|
|
|
|
|
|
|
|
# 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
|
|
|
|
;daily_rotate = true
|
|
|
|
|
|
|
|
# Expired days of log file(delete after max days), default is 7
|
|
|
|
;max_days = 7
|
2015-03-03 03:18:24 -06:00
|
|
|
|
2016-06-08 01:48:46 -05:00
|
|
|
[log.syslog]
|
|
|
|
;level =
|
|
|
|
|
|
|
|
# log line format, valid options are text, console and json
|
|
|
|
;format = text
|
|
|
|
|
|
|
|
# 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 00:27:52 -05:00
|
|
|
#################################### AMQP Event Publisher ##########################
|
2015-04-10 03:58:32 -05:00
|
|
|
[event_publisher]
|
|
|
|
;enabled = false
|
|
|
|
;rabbitmq_url = amqp://localhost/
|
|
|
|
;exchange = grafana_events
|
2015-05-13 06:36:13 -05:00
|
|
|
|
|
|
|
;#################################### Dashboard JSON files ##########################
|
|
|
|
[dashboards.json]
|
|
|
|
;enabled = false
|
|
|
|
;path = /var/lib/grafana/dashboards
|
|
|
|
|
2016-06-03 11:38:19 -05:00
|
|
|
#################################### Internal Grafana Metrics ##########################
|
2016-06-16 01:06:43 -05:00
|
|
|
# Metrics available at HTTP API Url /api/metrics
|
2016-06-03 11:38:19 -05:00
|
|
|
[metrics]
|
|
|
|
# Disable / Enable internal metrics
|
2016-08-09 04:07:26 -05:00
|
|
|
enabled = true
|
2016-06-03 11:38:19 -05:00
|
|
|
|
|
|
|
# Publish interval
|
|
|
|
;interval_seconds = 10
|
|
|
|
|
2016-08-10 04:15:27 -05:00
|
|
|
# Send internal metrics to Graphite
|
2016-08-10 01:06:10 -05:00
|
|
|
; [metrics.graphite]
|
2016-06-03 11:38:19 -05:00
|
|
|
; address = localhost:2003
|
2016-08-10 04:15:27 -05:00
|
|
|
; prefix = service.grafana.%(instance_name)s
|
2015-05-13 06:36:13 -05:00
|
|
|
|
2016-06-16 01:06:43 -05:00
|
|
|
#################################### Internal Grafana Metrics ##########################
|
|
|
|
# Url used to to import dashboards directly from Grafana.net
|
|
|
|
[grafana_net]
|
|
|
|
url = https://grafana.net
|