Skip to main content

Step 5: Deploy InfluxDB

Overview

In this step, we'll delve into the deployment of the InfluxDB database app on your edge node. InfluxDB is a powerful time-series database, ideal for storing and analyzing the telemetry data we've been collecting. This crucial component will serve as the foundation for our data storage and retrieval infrastructure.

note

Visit the official site of InfluxDB.

nfluxDB in the solution workflow

InfluxDB in the solution workflow

tip

To store the telemetry stream generated by the Ultralytics YOLOv8 application, we'll deploy an InfluxDB database. In the subsequent tutorial, we'll introduce an MQTT-InfluxDB Ingester to efficiently ingest this data into the database.

Add the InfluxDB App to your library

InfluxDB in Barbara Marketplace

InfluxDB in Barbara Marketplace

Go to Barbara Marketplace, search for InfluxDB and add it to your Panel's library.

note

You will find the InfluxDB in this link of the Barbara Marketplace.

Once added you will find it in your Barbara PANEL App Library. Let's deploy it to your Edge Node.

InfluxDB in Panel's library

InfluxDB in Panel's library

Install the InfluxDB App

  1. Head to your Node's details view and click the + Add Card button.

Add New Card

Add New Card

  1. Select the Application option in the dropdown menu.

Select Application

Select Application

  1. Select Application and Version: Select the InfluxDB app from the application dropdown list and pick the latest existing version from the version dropdown list. Then click Next to proceed with the next step.

Select InfluxDB

Select InfluxDB

  1. Add App Secrets Review the default configuration for app secrets and leave it as-is. Technical notes explain each variable on the Read me link below the form. Once finish, just click Next.

Add App Secrets

Add App Secrets

  1. Add the Compose Config. The only parameter that you can change in the Compose Configuration is the InfluxDB Port. It determines the port where the InfluxDB will be pusblished. In this tutorial we can leave this configuration in its default value: 8086.

Add Compose Config

Add Compose Config

  1. Add your App Config: The InfluxDB application does not need any extra configuration in this step. Just leave the JSON editor empty and press the button Send App.

Configure Application

Configure Application

Verifying the InfluxDB database application

Head back to your Node's details view. Within a few seconds, a new card should appear displaying the installed InfluxDB app. Look for the status label on the card - if it reads STARTED then your InfluxDB is up and running!

InfluxDB installed

InfluxDB installed

Open a new tab in your browser and navigate to the following URL: [IP_OF_YOUR_NODE]:8086.

Check that the port and the user/password are set in the application configuration:

ParameterDefault ValueConfiguration
port8086Compose config
userbbruserApp Secrets
passwordbbrpasswordApp Secrets
warning

Remember that if your laptop is not connected to the same LAN as your edge node, you must activate your VPN and use its VPN's IP to access this web interface. You can check this IP on the Network card.

InfluxDB Login

InfluxDB Login

Enter the selected user and password and you will reach the homesite of the InfluxDB database:

InfluxDB Login

InfluxDB Home

Congratulations! You've successfully set up InfluxDB. Next, move on to Step 6 where we'll use an MQTT-InfluxDB Ingester to save YOLOv8 telemetry data to your database.