This repository provides the materials for the workshop Grafana & Co: Visualization and monitoring of time series data with Grafana, Telegraf and InfluxDB.
Please download or clone this repository to participate in the workshop.
Start and run the TIG-stack defined in tig-stack/docker-compose.yaml:
cd tig-stack
docker compose up
Restart the Telegraf agent after changes to its configuration.
docker compose restart telegraf
The web interfaces of the TIG-stack can be accessed via the following ports:
InfluxDB http://localhost:8086
You can find a complete overview of all telemetry data published by the driving simulator via MQTT in Sim1-MQTT-Topics.md
A selection of published MQTT topics for a Telegraf configuration:
topics = [
"Sim1/Car/Data/Throttle",
"Sim1/Car/Data/Brake",
"Sim1/Car/Data/Steering",
"Sim1/Car/Data/Clutch",
"Sim1/Car/Data/FuelLevel",
"Sim1/Car/Data/FuelPressure",
"Sim1/Car/Data/WaterPressure",
"Sim1/Car/Data/WaterTemp",
"Sim1/Car/Data/Speed",
"Sim1/Car/Data/RPM",
"Sim1/Car/Data/Gear",
"Sim1/Car/Data/OdometerKM",
"Sim1/Car/Data/OilPressure",
"Sim1/Car/Data/OilTemp",
"Sim1/Car/Data/Orientation/0",
"Sim1/Car/Data/Orientation/1",
"Sim1/Car/Data/Orientation/2",
"Sim1/Car/Data/WorldAcceleration/0",
"Sim1/Car/Data/WorldAcceleration/1",
"Sim1/Car/Data/WorldAcceleration/2",
"Sim1/Car/Data/TyreRPS/0",
"Sim1/Car/Data/TyreRPS/1",
"Sim1/Car/Data/TyreRPS/2",
"Sim1/Car/Data/TyreRPS/3",
"Sim1/Car/Data/TyreTemp/0",
"Sim1/Car/Data/TyreTemp/1",
"Sim1/Car/Data/TyreTemp/2",
"Sim1/Car/Data/TyreTemp/3",
"Sim1/Car/Data/BrakeTempCelsius/0",
"Sim1/Car/Data/BrakeTempCelsius/1",
"Sim1/Car/Data/BrakeTempCelsius/2",
"Sim1/Car/Data/BrakeTempCelsius/3",
"Sim1/Car/Data/AirPressure/0",
"Sim1/Car/Data/AirPressure/1",
"Sim1/Car/Data/AirPressure/2",
"Sim1/Car/Data/AirPressure/3",
"Sim1/Car/Data/EngineSpeed",
"Sim1/Car/Data/EngineTorque",
"Sim1/Race/Data/Lap",
"Sim1/Race/Data/CurrentLapTime",
"Sim1/Race/Data/BestLapTime",
"Sim1/Race/Data/TrackName",
"Sim1/Race/Data/CarName"
]
This dashboard focuses on the core performance metrics of the car.
- Speed (Speed): Line chart showing the car’s speed over time.
- Engine RPM (RPM): Line chart comparing the current RPM with the gear position (Gear).
- Throttle Position (Throttle): Chart showing the throttle usage.
- Brake Pedal Position (Brake): Visualizing brake activity.
- Engine Torque (EngineTorque): Displaying the engine’s generated torque.
- Odometer (OdometerKM): Graph showing the distance traveled.
- Gear: Panel showing the current gear.
This dashboard provides an overview of the car’s racing performance.
- Current Lap Time (CurrentLapTime): line chart showing the current lap time.
- Best Lap Time (BestLapTime): SingleStat displaying the best lap time achieved.
- Current Lap Number (Lap): gauge panel visualizing the current lap count.
- Speed (Speed): chart showing speed trends during the race.
- Engine RPM (RPM): chart correlating RPM with other metrics like speed.
- Track Name (TrackName): text panel showing the current track name.
This dashboard focuses on monitoring fluid levels and temperatures.
- Fuel Level (FuelLevel): chart showing the remaining fuel in the tank
- Fuel Pressure (FuelPressure): chart visualizing fuel system pressure.
- Water Temperature (WaterTemp): chart showing engine cooling performance.
- Oil Pressure (OilPressure): chart monitoring oil pressure levels.
- Oil Temperature (OilTemp): chart visualizing oil temperature.
- Water Pressure (WaterPressure): chart displaying water pressure in the system.
This dashboard monitors the tires and brakes of the car.
- Tire Temperature (TyreTemp for all wheels): Heatmap showing temperature distribution across all tires.
- Tire Revolutions Per Second (TyreRPS for all wheels): Line chart showing tire rotation speeds.
- Brake Temperature (BrakeTempCelsius for all wheels): chart visualizing brake temperatures.
- Tire Air Pressure (AirPressure for all wheels): chart showing air pressure in the tires.
- Front vs. Rear Tires (Temperature): comparison chart highlighting temperature differences between front and rear tires.
- Brake Temperature Overview: Gauge panel warning of critical brake temperatures.
This dashboard provides insights into the car’s dynamics while in motion.
- Acceleration (WorldAcceleration): chart displaying acceleration values in X, Y, and Z directions.
- Steering Input (Steering): chart visualizing steering inputs over time.
- Orientation (Orientation in X, Y, Z): visualization showing the car’s orientation.
- Clutch Position (Clutch): chart showing clutch usage over time.
- Engine Speed (EngineSpeed): chart correlating engine speed with acceleration.
- Environmental Conditions: displays ambient and track temperatures (AmbientTemperature, TrackTemperature).
- Speed (Speed): chart showing speed trends during the race.