2016-10-21 17:01:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								+++
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								title = "Installing on Windows"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								description = "Installing Grafana on Windows"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								keywords = ["grafana", "configuration", "documentation", "windows"]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								type = "docs"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								[menu.docs]
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								parent = "installation"
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								weight = 3
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								+++
							 
						 
					
						
							
								
									
										
										
										
											2015-04-13 14:14:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-21 17:01:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								# Installing on Windows
  
						 
					
						
							
								
									
										
										
										
											2015-04-21 19:30:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Description | Download
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								------------ | -------------
							 
						 
					
						
							
								
									
										
										
										
											2017-10-26 19:17:51 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Latest stable package for Windows | [grafana.4.6.0.windows-x64.zip ](https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana-4.6.0.windows-x64.zip )
							 
						 
					
						
							
								
									
										
										
										
											2015-04-21 19:30:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2017-04-28 16:58:26 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Read [Upgrading Grafana ]({{< relref "installation/upgrading.md" >}} ) for tips and guidance on updating an existing
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								installation.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-21 19:30:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Configure
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The zip file contains a folder with the current Grafana version. Extract
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								this folder to anywhere you want Grafana to run from.  Go into the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								`conf`  directory and copy `sample.ini`  to `custom.ini` . You should edit 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								`custom.ini` , never `defaults.ini` . 
						 
					
						
							
								
									
										
										
										
											2015-04-21 19:30:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The default Grafana port is `3000` , this port requires extra permissions
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								on windows. Edit `custom.ini`  and uncomment the `http_port` 
							 
						 
					
						
							
								
									
										
										
										
											2017-09-12 17:07:20 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								configuration option (`;` is the comment character in ini files) and change it to something like `8080`  or similar.
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								That port should not require extra Windows privileges.
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Start Grafana by executing `grafana-server.exe` , preferably from the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								command line. If you want to run Grafana as windows service, download
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								[NSSM ](https://nssm.cc/ ). It is very easy add Grafana as a Windows
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								service using that tool.
							 
						 
					
						
							
								
									
										
										
										
											2015-04-21 19:30:15 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2016-10-21 17:01:34 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Read more about the [configuration options ]({{< relref "configuration.md" >}} ).
							 
						 
					
						
							
								
									
										
										
										
											2015-04-13 14:14:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-04-19 15:44:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								## Building on Windows
  
						 
					
						
							
								
									
										
										
										
											2015-04-13 14:14:13 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								The Grafana backend includes Sqlite3 which requires GCC to compile. So
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								in order to compile Grafana on Windows you need to install GCC. We
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								recommend [TDM-GCC ](http://tdm-gcc.tdragon.net/download ).
							 
						 
					
						
							
								
									
										
										
										
											2015-04-19 15:44:14 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2015-05-11 04:52:40 +08:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								Copy `conf/sample.ini`  to a file named `conf/custom.ini`  and change the
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								web server port to something like 8080. The default Grafana port, 3000,
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								requires special privileges on Windows.