How to send data to InfluxDB

In this tutorial you will learn how to send data to InfluxDB

Benefits of the InfluxDB output connector:

  • Directly stream device data from akenza to InfluxDB and subsequently process it in InfluxDB

  • Easily process low-power device data e.g. LoRaWAN device data in InfluxDB

In this tutorial, you will learn, how to send data to InfluxDB. The following steps are explained in more detail:

1. Setup an InfluxDB

First, you will need to either set up an InfluxDB OSS 2.0 or set up an InfluxDB cloud account in order to successfully process data from akenza to InfluxDB.

1.1 Create an Organization

In the navigation menu on the left, select the Account dropdown. Select Create Organization. In the window that appears accordingly, enter an Organization Name and Bucket Name and select Create.

More information about how to create an organization can be found here.

1.2 Create an InfluxDB bucket

  • Navigate to Data - Buckets

  • Create a new Bucket to define where you want to store the data forwarded from akenza

More information about how to create a bucket can be found here.

1.3 Add an API Token

  • Navigate to Data - API Tokens

  • Create a new API Token with Write access to the Bucket you want to store the data

More information about how to create a token can be found here.

2. Setup a Data Flow in akenza

Create a new Data Flow in akenza with Influx DB as Output Connector. Define a Connector Name, insert the InfluxDB URL under which your InfluxDB can be reached. Put the Organization Id of the organization created in step one in the InfluxDB Org field. Chose the Bucket name created in step one into the InfluxDB Bucket field. Copy the API Token created in step one into the InfluxDB API Token field.


  • Set a measurement name. If not set, it will be set to the topic of a sample.

  • Set a custom payload. If not set, the data part of the sample will be used as the payload.

Create a new device using the Data Flow and start sending data.

  • Only the data part of the data sample will be forwarded to InfluxDB

  • The device Id, akenza Id and device name will be used as tags in InfluxDB

3. Visualize data

In order to check if uplinks arrive in your InfluxDB bucket, navigate to Explore and create a query by selecting the Bucket created in step one, a measurement name and clicking submit. The data should now be shown. This query can be refined by selecting more filters.

4. Use alerts and tasks

Once a device is connected to the InfluxDB, device data can be further used on various services in InfluxDB.

Possible services are:

  • Tasks to analyze, modify, and act on data

  • Alerts to monitor data and send alerts

Last updated