InfluxDB Connector
Overview
Section titled “Overview”The InfluxDB v2 connector writes time-series data to InfluxDB databases.
Connector Type: InfluxDb2Writer
Configuration
Section titled “Configuration”{ "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" } }}Configuration Parameters
Section titled “Configuration Parameters”- 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)
Data Format
Section titled “Data Format”Input payload:
{ "temperature": 25.5, "humidity": 60.2, "pressure": 101.3}Stored in InfluxDB as:
measurement: temperaturetags: location=factory-floor, sensor_type=thermocouplefields: temperature=25.5, humidity=60.2, pressure=101.3timestamp: <current time>Use Case: Sensor Data Storage
Section titled “Use Case: Sensor Data Storage”{ "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" } }}Best Practices
Section titled “Best Practices”- Use meaningful measurement names
- Add static tags for filtering and grouping
- Keep field names consistent
- Use appropriate bucket retention policies