InfluxDB icon

InfluxDB

Write query data in InfluxDB 2.x

Actions2

Overview

This node writes data points to an InfluxDB database. It is useful for scenarios where you need to store time-series data such as metrics, events, or sensor readings. For example, you can write measurements with associated tags and fields to track system performance or IoT device data over time.

Use Case Examples

  1. Writing server performance metrics with tags like host and region, and fields like CPU usage and memory usage.
  2. Storing IoT sensor data with tags for device location and fields for temperature and humidity.

Properties

Name Meaning
Measurement The measurement (similar to a table) where data points will be written.
Tags Comma separated list of properties used as tags (indexed columns) for efficient querying.
Fields Comma separated list of properties used as fields (non-indexed columns) to store actual data values.
Default Tags Default tags to add to every data point, specified as name-value pairs.
Options Additional options including timestamp field name, organization override, and bucket override.

Output

JSON

  • measurement - The measurement name where data was written.
  • tags - Tags associated with the data points.
  • fields - Fields containing the actual data values.
  • timestamp - Timestamp of the data points if provided.

Dependencies

  • Requires an InfluxDB instance with URL, token, organization, and bucket credentials.

Troubleshooting

  • Error 'No credentials got returned!' indicates missing or invalid InfluxDB credentials; ensure credentials are configured correctly.
  • Operation not supported error occurs if an unsupported operation is selected; only 'write' and 'query' are supported.
  • Data format errors may occur if tags or fields are not properly specified as comma-separated lists.

Links

  • InfluxDB Documentation - Official documentation for InfluxDB, useful for understanding measurements, tags, fields, and query syntax.

Discussion