InfluxDB is an open-source time series platform developed by InfluxData. It is written in GO Programming Language and optimized for fast storage and retrieval of data in fields such as IoT sensors, Application Metrics and Operations Monitoring.

It is also a schema-less database, meaning that data is not organized in schemas and you can add new measurements or fields at any given point.

Some of its features include:

  • Quick and easy to start with
  • Require no external dependencies
  • Familiar Query syntax
  • allow irregular and regular time-series data

In this guide I will show you how to:

  • Install InfluxDB 2.x on Windows using Windows PowerShell
  • Run the InfluxDB server on Windows 11 / Windows 10
  • Create a database on InfluxDB User Interface

Install InfluxDB 2.x on Windows 11 / Windows 10

To install InfluxDB, go to InfluxDB download webpage to get the command for download and installing InfluxDB.

Select Windows Binaries (64-Bit) from the drop down arrow and copy the command.

wget https://dl.influxdata.com/influxdb/releases/influxdb2-2.3.0-windows-amd64.zip -UseBasicParsing -OutFile influxdb2-2.3.0-windows-amd64.zip
Expand-Archive .\influxdb2-2.3.0-windows-amd64.zip -DestinationPath 'C:\Program Files\InfluxData\influxdb\'

Open Windows PowerShell in Administrator mode and paste the commands to begin downloading and extraction.

The download starts automatically. Wait for it to finish.

From the installation command the file is kept in 'C:\Program Files\InfluxData\influxdb\' directory. You will find it there as shown below.

Check if InfluxDB server is running

To check if the server is running, Find the location of InfluxDB from your files. Press Shift then Right-Click to open the options menu. Select Open PowerShell from here to enable it to open on that directory. Other than that, You can copy the file path then paste it on command. Still will do.

Once the shell opens, type influxd or ./influxd whichever accepts and press Enter and the server will start running. If you get a warning to allow access, Check the Box to allow on Private networks and Click on Allow Access. It will show you the default listening port which is 8086.

Setup InfluxDB via UI on Windows

While the server is running from the PowerShell, Go to localhost:8086 to setup your credentials. The first page you will encounter is the one below. Click on Get Started.

Another page opens where you are supposed to fill your credentials like username, Organization and bucket name. Fill in the form then click on Continue.

Next up will be to choose on an easy step for way forward. I chose Quick Start for the first time.

Next up will be the Homepage for the InfluxDB as shown below.

You have setup InfluxDB via the UI, from this point you are able to write data like creating a database

Create Database on InfluxDB

Point to Note, in InfluxDB databases are known as buckets and tables are known as measurements.

So, initially when we connected to the localhost for the first time created a bucket ‘Test1’, which technically is our first database. But to create another database you would follow the following

While still on the Graphical UI for the InfluxDB, Click on Data>Buckets>Create Bucket.

A dialog appears for creating the bucket. Input the name and the retention period. I chose 30 days.

And just like that you have created a database.

InfluxDB real-time monitoring / alerting

InfluxDB is also used for real time monitoring of system resources and also allows you to create alert if a certain threshold is surpassed.

Conclusion

Apart from using PowerShell to install InfluxDB, you can download the zip file from InfluxData downloads and extract it to your desired location and it will still work as above.

Another option would be to use the Influx CLI to setup the database and also create databases from it. Whichever method you choose, You will have the same outcome regardless. Next reading should be on installation and usage of Telegraf:

Install and use Telegraf on Windows

More articles to read on our website:

LEAVE A REPLY

Please enter your comment!
Please enter your name here