Back to Blog
tutorialBeginner5 min read

Grafana

This guide will provide instructions on how to install Grafana on Windows

Windows - Grafana as a Service

Introduction

This guide will provide instructions on how to install Grafana on Windows 11.

OSS vs Enterprise

There are two versions: OSS (open source) and Enterprise. They are both free and have the same features. If you may want to get a license and pay for Grafana then use the Enterprise version as it can be unlocked without needing to reinstall. I will use the OSS version in this guide.

Download

The first step is to download the Grafana installer. Navigate to the Grafana Downloads and download the installer. When executing the MSI file, you will probably get a warning from Windows from Microsoft Defender. Assuming you got the MSI file from the link I provided, there is no security risk, however it is up to you if you want to proceed. I accept the defaults and let the installer proceed.

Configure Grafana

Once the installation has been completed Grafana will be running at http://localhost:3000.

Change Default Port

Port 3000 can be a bit busy. If you need to change the port you will need to create a custom.ini file.

Open up Notepad with Admin privileges.

Click File > Open, and then navigate to C:\Program Files\GrafanaLabs\grafana\conf

Change the drop down to the right of the "File name" input to be "All files" and then open sample

Scroll down and delete the ; in front of http_port and update the value to the desired port

Grafana configuration file showing http_port set to 9999 with the comment 'The http port to use'
Grafana Custom HTTP Port Configuration

Click File > Save As, then in the "File name" input, enter custom.ini. Change the "Save as type" to "All Files".

Windows Notepad Save As dialog with File name set to custom.ini and Save as type set to All files
Grafana Save As Custom.ini Dialog

In the windows search bar type services.msc and then find Grafana. Then right click and choose 'restart'.

Windows Services manager showing Grafana service selected with status Running, with options to Stop, Pause, or Restart the service
Windows Services Manager with Grafana Service Selected

Back in the browser, navigate to the new port. In my case, http://localhost:9999

Login

To log in, the email and password are admin. Change the password to something more secure, and then click "Submit".

Grafana web interface showing the Update your password screen with New password and Confirm new password fields and a Submit button
Grafana Update Password Prompt

Grafana is now installed on the system as a service locally and a data source can be added.