Skip to content

InfluxDB Connector

The InfluxDB v2 connector writes time-series data to InfluxDB databases.

Connector Type: InfluxDb2Writer

{
"type": "InfluxDb2Writer",
"config": {
"endpoint": "http://localhost:8086",
"authToken": "YOUR_INFLUXDB_TOKEN",
"org": "my-organization",
"bucket": "sensor-data",
"measurement": "temperature",
"tags": {
"location": "factory-floor",
"sensor_type": "thermocouple",
"unit": "celsius"
}
}
}
  • endpoint: InfluxDB server URL
  • authToken: InfluxDB authentication token
  • org: Organization name
  • bucket: Target bucket name
  • measurement: Measurement name
  • tags: Static tags to add to all data points (optional)

Input payload:

{
"temperature": 25.5,
"humidity": 60.2,
"pressure": 101.3
}

Stored in InfluxDB as:

measurement: temperature
tags: location=factory-floor, sensor_type=thermocouple
fields: temperature=25.5, humidity=60.2, pressure=101.3
timestamp: <current time>
{
"type": "InfluxDb2Writer",
"config": {
"endpoint": "http://influxdb.local:8086",
"authToken": "my-token==",
"org": "manufacturing",
"bucket": "production-metrics",
"measurement": "machine_data",
"tags": {
"machine_id": "CNC-001",
"location": "Building-A",
"department": "machining"
}
}
}
  1. Use meaningful measurement names
  2. Add static tags for filtering and grouping
  3. Keep field names consistent
  4. Use appropriate bucket retention policies
  • MongoDB - Document database alternative
  • SQL - Relational database alternative