This example Data Stream demonstrates how to use the Context Provider to return filtered pump data from an InfluxDB bucket.
Refer to configuration to understand all configuration options of this Agent

Step 1: Add the Agent

Drag the Influx DB Context Provider onto the canvas and rename it. Link the output endpoint to the printer, and save the Data Stream.

Step 2: Configure General

Select the Agent and click Configure. In this case, keep the default Collection and polling interval.

Step 3: Configure Database

Enter Database Details of the Influx Data Cloud to which you want to connect: URL, Token and Org.
Set the bucket and measurement. In this case, set the bucket to the developer's bucket and the measurement to Mem.

Step 4: Configure Payload

Add the Tag and Field properties to be included in the output payload, and the filter. In this case, add a host3 tag (type string), a volume1 field (double), and a filter of host3 does not contain 'z'.

Step 5: Results

Apply the changes, save the Data Stream and publish it.
Let's look at the Live Data View. Observe that all rows from the InfluxDB bucket that fit the filter criteria are printed.


Security Key
Data Stream
InfluxDB Context Provider Example.xuc
See the Import, Export, and Clone - XMPro article for steps to import a Data Stream.