b4mad / racing

Community-driven SimRacing data collection and analysis
https://b4mad.racing
GNU General Public License v3.0
22 stars 13 forks source link

telemetry ingress restrictions #374

Open durandom opened 1 year ago

durandom commented 1 year ago

Influx will create the schema on the fly, i.e. the first time it sees a field, it will create the field with the data type. This opens up our pipeline to spam and schema corruption. Let's be a bit more strict and clean up our telegraf.conf

documentation is at

durandom commented 1 year ago

maybe we have to upgrade our telegraf from 1.22 to 1.27

durandom commented 1 year ago
{
  "time": 1692204578177,
  "telemetry": {
    "Clutch": 0,
    "Brake": 0,
    "Throttle": 0.9999999,
    "Handbrake": 0,
    "SteeringAngle": 0.000227941709,
    "Rpms": 5677.957,
    "Gear": 3,
    "SpeedMs": 42.3292656,
    "DistanceRoundTrack": 2140.64087,
    "WorldPosition_x": 489.178741,
    "WorldPosition_y": 6.152093,
    "WorldPosition_z": 11.3597507,
    "CurrentLap": 5,
    "CurrentLapTime": 31.9163818,
    "LapTimePrevious": 73.70654,
    "CurrentLapIsValid": true,
    "PreviousLapWasValid": false,
    "CarClass": "GT3"
  }
}

and https://gitlab.com/mr_belowski/CrewChiefV4/-/blob/master/CrewChiefV4/mqtt_telemetry.json

goern commented 1 year ago

/kind feature /assign goern

goern commented 1 year ago

maybe we have to upgrade our telegraf from 1.22 to 1.27

implemented by #381