IT monitoring is the process of gathering metrics of process of hardware or software to ensure everything functions as expected and most of the times give an alert if a certain threshold has been surpassed in case of an event being down or has surpassed the required threshold. In this article we shall focus on the installation of Grafana 8 on Windows 11 / Windows 10.
Grafana is an open source monitoring and analytics web platform solution for every kind of database. It provides charts, graph, alerts when connected to different data sources.
Some of the features of Grafana include:
- Visualization with the use of charts and graphs.
- Crating dynamic and Reusable dashboards
- Various means of exploring data like split view and time ranges.
- Visually defined alerts for metrics
- Explore logs by quickly searching or streaming them live
- Mixed data sources
In this guide, I will show you how to install Grafana 8 on Windows 10 / Windows 11 and access it via the Web interface.
- Installed InfluxDB – Data source
- Installed Telegraf – InfluxDB agent
- Installed Prometheus – Data source
Install Grafana Grafana 8 on Windows 11 / Windows 10
To Install Grafana, You will need to navigate to Grafana download on Windows to download the
.msi installer file.
The download starts immediately. Navigate to you downloaded file and click to install the file.
Next will be to accept the terms for the License Agreement then choose the features to install. I went with the default of full installation. It’s just 2 features.
Next up click on Install and it will finish quickly without hassle.
Access Grafana UI on Windows 11 / Windows 10
Navigate to localhost:3000 which is the default TCP for Grafana unless you have changed the config file. The default username is
admin and the password
admin. Next up you will be prompted to change the passwords which is highly recommended to do so. The username remains
After password change, The Grafana homepage opens
It is a simple interface that one can easily move around without difficulties.
Adding a Data Source to Grafana
The first thing we will do is to add a data source. Ensure your InfluxDB server is running as well as telegraf before you continue with the next steps.
Click on Settings>Data Sources
Next will be to select the data-source. There are several data sources that can be used with Grafana but I will use InfluxDB at this time.
The next step is to configure the details for it to connect to InfluxDB. Grafana has two options of querying languages with InfluxDB, using Flux query language and InfluxQL. I will use Flux, Hence ensure to select Flux from the dropdown arrow. Then do not forget to input the default URL for InfluxDB which is
Scroll down to the Basic Authentication details and input your InfluxDB username and the password.
Then add your organization, and the API token registered to your username. Can be found at Data>API tokens in InfluxDB Dashboard. Then click Save and Test.
It will bring a success non-active dialog to show the number of buckets in your Influx DB. This might differ with regards to how many you have created.
Your Connection is successful and you can go ahead to query the data.
Creating a Dashboard on Grafana
Next we are supposed to create a dashboard that contains panels that give us the interface to query the data.
Click on the ‘+’ sign then click on Dashboard.
It opens a new page with the following details. Click on Add a new panel.
It opens as below. The next part is to choose the name that we used for the data source. which is
Quick trick if you are new to Flux Query Language, Go to Influx DB and select the data you wish to query form the measurements and the field values. Then click on Script Editor to get the script for the query.
The query is opened. Select and copy via the keyboard controls
ctrl + c
Paste the query in the Grafana Script and click apply.
Trying the same queried data with a different view format like gauge, I get this.
Its up to you on how you want to view the data.
And that is how you configure Grafana with InfluxDB with Telegraf.
Grafana is a more dedicated tool for visualization and monitoring for a wide range of data sources. This enables you you to create quite a number of panels on a single dashboard from multiple data sources.