InfluxDB-Konnektor
Übersicht
Abschnitt betitelt „Übersicht“Der InfluxDB v2-Konnektor schreibt Zeitreihendaten in InfluxDB-Datenbanken.
Konnektor-Typ: InfluxDb2Writer
Konfiguration
Abschnitt betitelt „Konfiguration“{ "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" } }}Konfigurationsparameter
Abschnitt betitelt „Konfigurationsparameter“- endpoint: InfluxDB-Server-URL
- authToken: InfluxDB-Authentifizierungstoken
- org: Organisationsname
- bucket: Ziel-Bucket-Name
- measurement: Messungsname
- tags: Statische Tags für alle Datenpunkte (optional)
Datenformat
Abschnitt betitelt „Datenformat“Eingabe-Payload:
{ "temperature": 25.5, "humidity": 60.2, "pressure": 101.3}In InfluxDB gespeichert als:
measurement: temperaturetags: location=factory-floor, sensor_type=thermocouplefields: temperature=25.5, humidity=60.2, pressure=101.3timestamp: <aktuelle Zeit>Anwendungsfall: Sensordaten-Speicherung
Abschnitt betitelt „Anwendungsfall: Sensordaten-Speicherung“{ "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
Abschnitt betitelt „Best Practices“- Aussagekräftige Messungsnamen verwenden
- Statische Tags für Filterung und Gruppierung hinzufügen
- Feldnamen konsistent halten
- Geeignete Bucket-Retention-Policies verwenden