Skip to main content

Step 5: Deploy Grafana

warning

This is the 5th step of the guide "Deploy a Data Monitoring Solution". If you haven't done so already, jump back to the first step.

Overview

Grafana is an open-source data-visualization platform that takes the data collected by your edge nodes in InfluxDB and translates it into beautiful and informative dashboards.

Add Grafana to your library

Grafana in Barbara Marketplace

Grafana in Barbara Marketplace

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

note

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

note

If you have been given a demo or trial account, this app may be already added to your Library.

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

Grafana in Panel's library

Grafana in Panel's library

Install the Grafana app

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

Add New Card

Add New Card

  1. Select the Marketplace app option in the dropdown menu.

Select Marketplace Option

Select Marketplace Option

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

Select Grafana

Select Grafana

  1. Add Environment Variables Review the default configuration for env variables or leave it as-is. Technical notes explain each variable on the right side of the view. Once finish, just click CONFIGURE.

Add Env Variables

Add Env Variables

  1. Add your app Config: This step allows you to make some additional configuration through a JSON-format text. However, Grafana does not need any extra configurations to work. Just click "SEND" to finally deploy it to your node.

Configure Application

Configure Application

Verifying your Grafana App

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

Grafana installed

Grafana installed

Congratulations! Your Grafana is running and ready to start visualizing data from InfluxDB database!

Access Grafana Home

You can access the Grafana GUI while the app is running through a web interface. Typing the following route in a web browser {IP_DEVICE}:13000, where {IP_DEVICE} is the Edge Node’s IP address that appears in the Networking card.

To log into the Grafana, use as credentials the values for USERNAME and PASSWORD you defined when you configured the app before deployin it.

(If you left the default values, then the credentials will be bbruser and bbrpassword)

Grafana Home

Grafana Home

After log in, select Data Sources in the lateral menu.

Grafana Select Data Sources

Grafana Select Data Sources

In Data Sources view, select the InfluxDB_BarbaraDefault data source.

Grafana Select Barbara Data Source

Grafana Select Barbara Data Source

In the settings tab, press the Testbutton to check the data source. The message datasource is working. 3 buckets found must be displayed.

Then press the button Explore data.

Grafana Send Query

Grafana Send Query

  1. Enter following query in the editor:
from(bucket: "bbrbucket")
|> range(start: v.timeRangeStart, stop:v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == "testDevice" and
r._field == "testVariable"
)
  1. Press the button Run query.
  2. You will see the data visualized in the graphic chart.