Grafana is multi-platform open-source analytics and interactive visualization web application that integrates with complex data from sources like Prometheus, InfluxDB, Graphite, and ElasticSearch. It provides charts, graphs, and alerts for the web when connected to supported data sources. It is expandable through a plug-in system. See this guide on how to install Grafana on Ubuntu Linux. Grafana enables users to create complex monitoring dashboards using interactive query builders and also lets you create alerts, notifications, and ad-hoc filters for your data while also making collaboration with your teammates easier through built-in sharing features. Grafana supports querying Prometheus and the data source for Prometheus has been included since Grafana 2.5.0.
Grafana Enterprise includes access to enterprise plugins that take your existing data sources and allow you to drop them right into Grafana. This means you can get the best out of your complex, expensive monitoring solutions and databases by visualizing all the data in an easier and more effective way.
Part 1 -Below are the steps to install Grafana on Windows 10 or Windows Server: Download Grafana from the official website as shown below
– Click on Download the installer
– Open the Downloaded file (MSI) as shown below and
– Click on run as shown below.
Execute the installer and continue with the installation process.
Note: If your Microsoft defender is active as the example below, you may be prompted with the Window below that the app cannot run. In this case, – click on the More info button and
– Select Run anyway.
Click on Next as shown on the Welcome to Grafana OSS Setup Wizard
Accept the terms of the license agreement and click on “Next” as shown below
On the custome setup page, click on “Next” as shown below
On the “ready to Install GrafanaOSS” wizard, click n Install as shown below
From here, the installation should start and when the installation is complete, you will be asked to click on “Finish” to complete the installation.
Now the installation of Grafana is complete and if the service is running correctly, you should be able to fire-up Grafana on the server any of the following below.
- localhost:3000 - IPaddress:3000
The default port is 3000. In a production environment, you may need to open port 3000 on your network (router) and on the server itself (Grafana Server).
Enter the default username and password. Below are the default credentials for Grafana.
Username: admin Password: admin
Note: Every Grafana installation uses the same administrative credentials by default, therefore it is best practice to change your login information as soon as possible. upon entering the default password, you will be prompted to change your password. Simply enter your new password as shown below and click on submit.
– Note: This step can be skipped as shown in the image below. It is recommended to have it changed, so why do you want to skip it?
Now we are presented with the default Grafana Home screen as shown below.
Part 2 – Define the configuration file: By default, Grafana relies on configuration files located in the conf folder of your installation directory. For this installation, its conf folder is located at C:\Program Files\GrafanaLabs\grafana as an example
Note: The NSSM is responsible for launching the Grafana service and it is a service manager for Windows.
By default, Grafana is going to use the content of the defaults.ini file, but we are going to overwrite that to have our own custom configuration file.
Note: You can replace the default configuration file with a new file and before doing this, ensure you make a backup of this file, so when you run into configuration issues, etc in the new file, then you can revert to it. Refer to the Configuration page for details on options for customizing your environment, logging, and database, etc.
I hope you found this blog post helpful. If you have any questions, please let me know in the comment session