2016-10-21 17:01:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								+++
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								title = "Configuration"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								description = "Configuration Docs"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								keywords = ["grafana", "configuration", "documentation"]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								type = "docs"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								[menu.docs]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								name = "Configuration"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								identifier = "config"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								parent = "admin"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								weight = 1
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+++
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# Configuration
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The Grafana back-end has a number of configuration options that can be
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								specified in a `.ini`  configuration file or specified using environment variables.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-07-24 16:34:11 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  **Note.** Grafana needs to be restarted for any configuration changes to take effect.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-08-22 03:28:05 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Comments In .ini Files
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Semicolons (the `;`  char) are the standard way to comment out lines in a `.ini`  file.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								A common problem is forgetting to uncomment a line in the `custom.ini`  (or `grafana.ini` ) file which causes the configuration option to be ignored.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								## Config file locations
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  Default configuration from `$WORKING_DIR/conf/defaults.ini`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  Custom configuration from `$WORKING_DIR/conf/custom.ini`  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  The custom configuration file path can be overridden using the `--config`  parameter 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  **Note.** If you have installed Grafana using the `deb` or `rpm`
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  packages, then your configuration file is located at
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  `/etc/grafana/grafana.ini`. This path is specified in the Grafana
  
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  init.d script using `--config` file parameter.
  
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Using environment variables
  
						 
					
						
							
								
									
										
										
										
											2015-03-12 02:32:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								All options in the configuration file (listed below) can be overridden
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								using environment variables using the syntax:
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 02:32:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								GF_< SectionName > _< KeyName > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 02:32:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Where the section name is the text within the brackets. Everything
							 
						 
					
						
							
								
									
										
										
										
											2015-06-18 11:57:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								should be upper case, `.`  should be replaced by `_` . For example, given these configuration settings:
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 02:32:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# default section
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								instance_name = ${HOSTNAME}
							 
						 
					
						
							
								
									
										
										
										
											2016-10-07 14:48:57 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								[security]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								admin_user = admin
							 
						 
					
						
							
								
									
										
										
										
											2015-07-08 16:52:50 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								[auth.google]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								client_secret = 0ldS3cretKey
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 02:32:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Then you can override them using:
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 02:32:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								export GF_DEFAULT_INSTANCE_NAME=my-instance
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								export GF_SECURITY_ADMIN_USER=true
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								export GF_AUTH_GOOGLE_CLIENT_SECRET=newS3cretKey
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 02:32:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr  / >  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## instance_name
  
						 
					
						
							
								
									
										
										
										
											2017-02-07 17:21:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Set the name of the grafana-server instance. Used in logging and internal metrics and in
							 
						 
					
						
							
								
									
										
										
										
											2016-07-08 13:12:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								clustering info. Defaults to: `${HOSTNAME}` , which will be replaced with
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								environment variable `HOSTNAME` , if that is empty or does not exist Grafana will try to use
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								system calls to get the machine name.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-13 03:31:35 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [paths]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### data
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Path to where Grafana stores the sqlite3 database (if used), file based
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								sessions (if used), and other data.  This path is usually specified via
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								command line in the init.d script or the systemd service file.
							 
						 
					
						
							
								
									
										
										
										
											2015-04-13 03:31:35 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-06-14 15:35:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### temp_data_lifetime
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-08-14 20:24:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								How long temporary images in `data`  directory should be kept. Defaults to: `24h` . Supported modifiers: `h`  (hours),
							 
						 
					
						
							
								
									
										
										
										
											2018-06-14 15:35:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`m`  (minutes), for example: `168h` , `30m` , `10h30m` . Use `0`  to never clean up temporary files. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-13 03:31:35 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### logs
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Path to where Grafana will store logs. This path is usually specified via
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								command line in the init.d script or the systemd service file.  It can
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								be overridden in the configuration file or in the default environment variable
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								file.
							 
						 
					
						
							
								
									
										
										
										
											2015-04-13 03:31:35 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-17 21:48:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### plugins
  
						 
					
						
							
								
									
										
										
										
											2017-10-27 22:37:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Directory where grafana will automatically scan and look for plugins
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-07 22:23:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### provisioning
  
						 
					
						
							
								
									
										
										
										
											2017-10-27 22:37:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-07 22:23:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Folder that contains [provisioning ](/administration/provisioning ) config files that grafana will apply on startup. Dashboards will be reloaded when the json files changes
							 
						 
					
						
							
								
									
										
										
										
											2017-10-27 22:37:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								## [server]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### http_addr
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The IP address to bind to. If empty will bind to all interfaces
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### http_port
  
						 
					
						
							
								
									
										
										
										
											2015-04-01 23:24:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The port to bind to, defaults to `3000` . To use port 80 you need to
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								either give the Grafana binary permission for example:
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								$ sudo setcap 'cap_net_bind_service=+ep' /usr/sbin/grafana-server
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-04-01 23:24:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Or redirect port 80 to the Grafana port using:
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								```bash
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								$ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								```
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Another way is put a webserver like Nginx or Apache in front of Grafana and have them proxy requests to Grafana.
							 
						 
					
						
							
								
									
										
										
										
											2015-04-07 22:48:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### protocol
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-03 02:59:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`http` ,`https` or `socket`  
						 
					
						
							
								
									
										
										
										
											2015-04-07 22:48:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-31 14:33:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  **Note** Grafana versions earlier than 3.0 are vulnerable to [POODLE](https://en.wikipedia.org/wiki/POODLE). So we strongly recommend to upgrade to 3.x or use a reverse proxy for ssl termination.
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-10-03 02:59:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### socket
  
						 
					
						
							
								
									
										
										
										
											2018-10-03 03:20:48 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Path where the socket should be created when `protocol=socket` . Please make sure that Grafana has appropriate permissions.
							 
						 
					
						
							
								
									
										
										
										
											2018-10-03 02:59:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								### domain
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This setting is only used in as a part of the `root_url`  setting (see below). Important if you
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								use GitHub or Google OAuth.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-05 17:21:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### enforce_domain
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Redirect to correct domain if host header does not match domain.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Prevents DNS rebinding attacks. Default is false.
							 
						 
					
						
							
								
									
										
										
										
											2015-05-05 17:21:06 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								### root_url
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								This is the full URL used to access Grafana from a web browser. This is
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								important if you use Google or GitHub OAuth authentication (for the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								callback URL to be correct).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  **Note** This setting is also important if you have a reverse proxy
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  in front of Grafana that exposes it through a subpath. In that
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  case add the subpath to the end of this URL setting.
  
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### static_root_path
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The path to the directory where the front end files (HTML, JS, and CSS
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								files). Default to `public`  which is why the Grafana binary needs to be
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								executed with working directory set to the installation path.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-07 22:48:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### cert_file
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Path to the certificate file (if `protocol`  is set to `https` ).
							 
						 
					
						
							
								
									
										
										
										
											2015-04-07 22:48:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### cert_key
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Path to the certificate key file (if `protocol`  is set to `https` ).
							 
						 
					
						
							
								
									
										
										
										
											2015-04-07 22:48:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-03-06 15:26:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### router_logging
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set to true for Grafana to log all HTTP requests (not just errors). These are logged as Info level events
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								to grafana log.
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr  / >  
						 
					
						
							
								
									
										
										
										
											2015-03-30 15:22:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr  / >  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								## [database]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Grafana needs a database to store users and dashboards (and other
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								things). By default it is configured to use `sqlite3`  which is an
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								embedded database (included in the main Grafana binary).
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-12-22 06:39:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### url
  
						 
					
						
							
								
									
										
										
										
											2017-02-07 17:21:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-08-06 20:40:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Use either URL or the other fields below to configure the database
							 
						 
					
						
							
								
									
										
										
										
											2016-12-22 06:39:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Example: `mysql://user:secret@host:port/database` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								### type
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								Either `mysql` , `postgres`  or `sqlite3` , it's your choice.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### path
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Only applicable for `sqlite3`  database. The file path where the database
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								will be stored.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### host
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-08-06 20:40:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Only applicable to MySQL or Postgres. Includes IP or hostname and port or in case of unix sockets the path to it.
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								For example, for MySQL running on the same host as Grafana: `host =
							 
						 
					
						
							
								
									
										
										
										
											2018-08-06 20:40:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								127.0.0.1:3306` or with unix sockets: `host = /var/run/mysqld/mysqld.sock` 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### name
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The name of the Grafana database. Leave it set to `grafana`  or some
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								other name.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### user
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								The database user (not applicable for `sqlite3` ).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### password
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-13 17:55:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The database user's password (not applicable for `sqlite3` ). If the password contains `#`  or `;`  you have to wrap it with triple quotes. Ex `"""#password;"""` 
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### ssl_mode
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								For Postgres, use either `disable` , `require`  or `verify-full` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								For MySQL, use either `true` , `false` , or `skip-verify` .
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 21:48:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### ca_cert_path
  
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-13 17:55:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The path to the CA certificate to use. On many linux systems, certs can be found in `/etc/ssl/certs` .
							 
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 21:48:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### client_key_path
  
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-13 17:55:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The path to the client key. Only if server requires client authentication.
							 
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 21:48:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### client_cert_path
  
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-13 17:55:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The path to the client cert. Only if server requires client authentication.
							 
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 21:48:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### server_cert_name
  
						 
					
						
							
								
									
										
										
										
											2015-11-25 00:17:21 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-13 17:55:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The common name field of the certificate used by the `mysql`  or `postgres`  server. Not necessary if `ssl_mode`  is set to `skip-verify` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-06-21 22:41:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### max_idle_conn
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The maximum number of connections in the idle connection pool.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-07-24 18:37:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### max_open_conn
  
						 
					
						
							
								
									
										
										
										
											2017-06-21 22:41:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The maximum number of open connections to the database.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-03-16 07:25:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### conn_max_lifetime
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Sets the maximum amount of time a connection may be reused. The default is 14400 (which means 14400 seconds or 4 hours). For MySQL, this setting should be shorter than the [`wait_timeout` ](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_wait_timeout ) variable.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-06 22:01:31 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### log_queries
  
						 
					
						
							
								
									
										
										
										
											2018-03-16 07:25:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-04 03:05:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Set to `true`  to log the sql calls and execution times.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr  / >  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 00:49:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [security]
  
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### admin_user
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The name of the default Grafana admin user (who has full permissions).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Defaults to `admin` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### admin_password
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-05-09 19:44:11 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The password of the default Grafana admin. Set once on first-run.  Defaults to `admin` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### login_remember_days
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								The number of days the keep me logged in / remember me cookie lasts.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### secret_key
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-08-29 19:26:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Used for signing some datasource settings like secrets and passwords. Cannot be changed without requiring an update
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								to datasource settings to re-encode them.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-01 14:40:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### disable_gravatar
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set to `true`  to disable the use of Gravatar for user profile images.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Default is `false` .
							 
						 
					
						
							
								
									
										
										
										
											2015-05-01 14:40:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-28 15:21:33 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### data_source_proxy_whitelist
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Define a white list of allowed ips/domains to use in data sources. Format: `ip_or_domain:port`  separated by spaces
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr  / >  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-01 21:01:31 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [users]
  
						 
					
						
							
								
									
										
										
										
											2015-03-12 00:49:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### allow_sign_up
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set to `false`  to prohibit users from being able to sign up / create
							 
						 
					
						
							
								
									
										
										
										
											2017-07-24 18:37:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								user accounts. Defaults to `false` .  The admin user can still create
							 
						 
					
						
							
								
									
										
										
										
											2017-02-07 17:21:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								users from the [Grafana Admin Pages ](../../reference/admin )
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 00:49:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### allow_org_create
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set to `false`  to prohibit users from creating new organizations.
							 
						 
					
						
							
								
									
										
										
										
											2017-07-24 18:37:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Defaults to `false` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 00:49:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### auto_assign_org
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set to `true`  to automatically add new users to the main organization
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								(id 1). When set to `false` , new users will automatically cause a new
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								organization to be created for that new user.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 00:49:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-07-14 03:14:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### auto_assign_org_id
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set this value to automatically add new users to the provided org.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This requires `auto_assign_org`  to be set to `true` . Please make sure
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								that this organization does already exists.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 00:49:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### auto_assign_org_role
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The role new users will be assigned for the main organization (if the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								above setting is set to true).  Defaults to `Viewer` , other valid
							 
						 
					
						
							
								
									
										
										
										
											2017-12-14 01:53:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								options are `Admin`  and `Editor` . e.g. :
							 
						 
					
						
							
								
									
										
										
										
											2016-12-23 16:41:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-14 01:53:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`auto_assign_org_role = Viewer`  
						 
					
						
							
								
									
										
										
										
											2016-12-23 16:41:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-01-31 23:07:27 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### viewers_can_edit
  
						 
					
						
							
								
									
										
										
										
											2017-12-14 01:53:42 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Viewers can edit/inspect dashboard settings in the browser. But not save the dashboard.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Defaults to `false` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 00:49:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-12 01:13:48 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr >  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-28 21:27:08 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [auth]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 19:21:11 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Grafana provides many ways to authenticate users. The docs for authentication has been split in to many different pages
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 18:11:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								below.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 19:15:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [Authentication Overview ]({{< relref "auth/overview.md" >}} ) (anonymous access options, hide login and more) 
						 
					
						
							
								
									
										
										
										
											2018-09-06 18:11:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  [Google OAuth ]({{< relref "auth/google.md" >}} ) (auth.google) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [GitHub OAuth ]({{< relref "auth/github.md" >}} ) (auth.github) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [Gitlab OAuth ]({{< relref "auth/gitlab.md" >}} ) (auth.gitlab) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [Generic OAuth ]({{< relref "auth/generic-oauth.md" >}} ) (auth.generic_oauth, okta2, auth0, bitbucket, azure) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [Basic Authentication ]({{< relref "auth/overview.md" >}} ) (auth.basic) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [LDAP Authentication ]({{< relref "auth/ldap.md" >}} ) (auth.ldap) 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  [Auth Proxy ]({{< relref "auth/auth-proxy.md" >}} ) (auth.proxy) 
						 
					
						
							
								
									
										
										
										
											2015-07-30 16:37:49 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								## [session]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### provider
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 21:48:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Valid values are `memory` , `file` , `mysql` , `postgres` , `memcache`  or `redis` . Default is `file` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### provider_config
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This option should be configured differently depending on what type of
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								session provider you have configured.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  **file:** session file path, e.g. `data/sessions`  
						 
					
						
							
								
									
										
										
										
											2015-07-08 20:40:43 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  **mysql:** go-sql-driver/mysql dsn config string, e.g. `user:password@tcp(127.0.0.1:3306)/database_name`  
						 
					
						
							
								
									
										
										
										
											2018-08-06 20:40:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  **postgres:** ex:  `user=a password=b host=localhost port=5432 dbname=c sslmode=verify-full`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  **memcache:** ex:  `127.0.0.1:11211`  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  **redis:** ex: `addr=127.0.0.1:6379,pool_size=100,prefix=grafana` . For unix socket, use for example: `network=unix,addr=/var/run/redis/redis.sock,pool_size=100,db=grafana`  
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-31 20:55:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Postgres valid `sslmode`  are `disable` , `require` , `verify-ca` , and `verify-full`  (default).
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### cookie_name
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The name of the Grafana session cookie.
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### cookie_secure
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Set to true if you host Grafana behind HTTPS only. Defaults to `false` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### session_life_time
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-11 22:13:52 +08:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								How long sessions lasts in seconds. Defaults to `86400`  (24 hours).
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr  / >  
						 
					
						
							
								
									
										
										
										
											2015-07-15 20:48:39 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-30 15:22:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [analytics]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-03-30 23:39:16 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### reporting_enabled
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 21:48:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								When enabled Grafana will send anonymous usage statistics to
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								`stats.grafana.org` . No IP addresses are being tracked, only simple counters to 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								track running instances, versions, dashboard &  error counts. It is very helpful
							 
						 
					
						
							
								
									
										
										
										
											2016-03-10 21:48:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								to us, so please leave this enabled. Counters are sent every 24 hours. Default
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								value is `true` .
							 
						 
					
						
							
								
									
										
										
										
											2015-03-30 15:22:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### google_analytics_ua_id
  
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								If you want to track Grafana usage via Google analytics specify *your*  Universal
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Analytics ID here. By default this feature is disabled.
							 
						 
					
						
							
								
									
										
										
										
											2015-07-08 16:52:50 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-08-12 02:58:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< hr  / >  
						 
					
						
							
								
									
										
										
										
											2015-07-15 20:48:39 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-17 21:48:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [dashboards]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-05-14 15:51:23 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### versions_to_keep
  
						 
					
						
							
								
									
										
										
										
											2017-11-17 21:48:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Number dashboard versions to keep (per dashboard). Default: 20, Minimum: 1.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-07-08 16:52:50 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [dashboards.json]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-12-07 22:23:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  This have been replaced with dashboards [provisioning](/administration/provisioning) in 5.0+
  
						 
					
						
							
								
									
										
										
										
											2015-07-08 16:52:50 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### enabled
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								`true`  or `false` . Is disabled by default. 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### path
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								The full path to a directory containing your json dashboards.
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-09-30 13:40:58 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [smtp]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Email server settings.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### enabled
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								defaults to false
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### host
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								defaults to localhost:25
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### user
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								In case of SMTP auth, defaults to `empty` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### password
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								In case of SMTP auth, defaults to `empty` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### cert_file
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								File path to a cert file, defaults to `empty` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### key_file
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								File path to a key file, defaults to `empty` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### skip_verify
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Verify SSL for smtp server? defaults to `false` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### from_address
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Address used when sending out emails, defaults to `admin@grafana.localhost` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-02-15 05:07:29 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### from_name
  
						 
					
						
							
								
									
										
										
										
											2017-02-15 17:45:04 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Name to be used when sending out emails, defaults to `Grafana` 
							 
						 
					
						
							
								
									
										
										
										
											2017-02-15 05:07:29 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-09-23 05:29:56 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### ehlo_identity
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Name to be used as client identity for EHLO in SMTP dialog, defaults to instance_name.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-21 22:29:17 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [log]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### mode
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Either "console", "file", "syslog". Default is console and  file
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Use space to separate multiple modes, e.g. "console file"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### level
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Either "debug", "info", "warn", "error", "critical", default is "info"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-07 16:39:01 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### filters
  
						 
					
						
							
								
									
										
										
										
											2016-06-21 22:29:17 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								optional settings to set different levels for specific loggers.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Ex `filters = sqlstore:debug` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [metrics]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### enabled
  
						 
					
						
							
								
									
										
										
										
											2017-11-16 16:38:37 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Enable metrics reporting. defaults true. Available via HTTP API `/metrics` .
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-11-15 04:42:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### basic_auth_username
  
						 
					
						
							
								
									
										
										
										
											2018-11-15 06:37:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								If set configures the username to use for basic authentication on the metrics endpoint.
							 
						 
					
						
							
								
									
										
										
										
											2018-11-15 04:42:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### basic_auth_password
  
						 
					
						
							
								
									
										
										
										
											2018-11-15 06:37:32 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								If set configures the password to use for basic authentication on the metrics endpoint.
							 
						 
					
						
							
								
									
										
										
										
											2018-11-15 04:42:47 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### interval_seconds
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-17 16:01:55 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Flush/Write interval when sending metrics to external TSDB. Defaults to 10s.
							 
						 
					
						
							
								
									
										
										
										
											2016-06-04 00:38:19 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## [metrics.graphite]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Include this section if you want to send internal Grafana metrics to Graphite.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### address
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Format `<Hostname or ip>` :port
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### prefix
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Graphite metric prefix. Defaults to `prod.grafana.%(instance_name)s.` 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-08-02 15:35:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [snapshots]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### external_enabled
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set to false to disable external snapshot publish endpoint (default true)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### external_snapshot_url
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set root url to a Grafana instance where you want to publish external snapshots (defaults to https://snapshots-origin.raintank.io)
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### external_snapshot_name
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Set name for external snapshot button. Defaults to `Publish to snapshot.raintank.io` 
							 
						 
					
						
							
								
									
										
										
										
											2016-09-26 20:46:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-02-21 06:10:59 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### snapshot_remove_expired
  
						 
					
						
							
								
									
										
										
										
											2016-09-26 20:46:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Enabled to automatically remove expired snapshots
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [external_image_storage]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								These options control how images should be made public so they can be shared on services like slack.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### provider
  
						 
					
						
							
								
									
										
										
										
											2018-01-22 18:11:30 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								You can choose between (s3, webdav, gcs, azure_blob, local). If left empty Grafana will ignore the upload action.
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## [external_image_storage.s3]
  
						 
					
						
							
								
									
										
										
										
											2017-10-05 03:04:20 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-09-19 16:17:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### bucket
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Bucket name for S3. e.g. grafana.snapshot
							 
						 
					
						
							
								
									
										
										
										
											2017-10-05 03:04:20 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-09-19 16:17:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### region
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Region name for S3. e.g. 'us-east-1', 'cn-north-1', etc
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-10-05 03:04:20 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### path
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Optional extra path inside bucket, useful to apply expiration policies
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### bucket_url
  
						 
					
						
							
								
									
										
										
										
											2017-09-19 16:17:22 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								(for backward compatibility, only works when no bucket or region are configured)
							 
						 
					
						
							
								
									
										
										
										
											2017-03-06 15:26:36 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Bucket URL for S3. AWS region can be specified within URL or defaults to 'us-east-1', e.g.
							 
						 
					
						
							
								
									
										
										
										
											2017-02-21 17:09:50 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								-  http://grafana.s3.amazonaws.com/ 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								-  https://grafana.s3-ap-southeast-2.amazonaws.com/ 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### access_key
  
						 
					
						
							
								
									
										
										
										
											2017-02-21 17:09:50 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Access key. e.g. AAAAAAAAAAAAAAAAAAAA
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Access key requires permissions to the S3 bucket for the 's3:PutObject' and 's3:PutObjectAcl' actions.
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### secret_key
  
						 
					
						
							
								
									
										
										
										
											2017-02-21 17:09:50 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Secret key. e.g. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								## [external_image_storage.webdav]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### url
  
						 
					
						
							
								
									
										
										
										
											2016-11-08 14:04:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Url to where Grafana will send PUT request with images
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 18:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-03-23 23:23:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### public_url
  
						 
					
						
							
								
									
										
										
										
											2018-07-18 02:10:12 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Optional parameter. Url to send to users in notifications. If the string contains the sequence ${file}, it will be replaced with the uploaded filename. Otherwise, the file name will be appended to the path part of the url, leaving any query string unchanged.
							 
						 
					
						
							
								
									
										
										
										
											2017-03-23 23:23:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### username
  
						 
					
						
							
								
									
										
										
										
											2016-11-08 14:04:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								basic auth username
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 18:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-11-06 22:40:02 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### password
  
						 
					
						
							
								
									
										
										
										
											2016-11-08 14:04:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								basic auth password
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 18:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-08-06 23:04:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [external_image_storage.gcs]
  
						 
					
						
							
								
									
										
										
										
											2017-08-05 05:46:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### key_file
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Path to JSON key file associated with a Google service account to authenticate and authorize.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Service Account keys can be created and downloaded from https://console.developers.google.com/permissions/serviceaccounts.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-08-07 21:17:16 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Service Account should have "Storage Object Writer" role.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-08-05 05:46:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### bucket name
  
						 
					
						
							
								
									
										
										
										
											2017-10-06 01:01:03 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Bucket Name on Google Cloud Storage.
							 
						 
					
						
							
								
									
										
										
										
											2017-08-05 05:46:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-11-20 10:26:46 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### path
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Optional extra path inside bucket
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-07-30 10:31:28 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [external_image_storage.azure_blob]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### account_name
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Storage account name
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### account_key
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Storage account key
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### container_name
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Container name where to store "Blob" images with random names. Creating the blob container beforehand is required. Only public containers are supported.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 18:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## [alerting]
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-01-25 20:33:27 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								### enabled
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Defaults to true. Set to false to disable alerting engine and hide Alerting from UI.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### execute_alerts
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-11-08 18:05:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Makes it possible to turn off alert rule execution.
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 17:20:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### error_or_timeout
  
						 
					
						
							
								
									
										
										
										
											2018-09-06 17:51:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  Available in 5.3 and above
  
						 
					
						
							
								
									
										
										
										
											2018-09-06 17:20:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 17:51:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
							 
						 
					
						
							
								
									
										
										
										
											2018-09-06 17:20:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								### nodata_or_nullvalues
  
						 
					
						
							
								
									
										
										
										
											2018-09-06 17:51:24 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								>  Available in 5.3  and above
  
						 
					
						
							
								
									
										
										
										
											2018-09-06 17:20:38 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
							 
						 
					
						
							
								
									
										
										
										
											2018-09-25 18:17:04 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								# concurrent_render_limit
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								>  Available in 5.3  and above
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Alert notifications can include images, but rendering many images at the same time can overload the server.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								This limit will protect the server from render overloading and make sure notifications are sent out quickly. Default
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								value is `5` .