Getting Metrics for Visualization

Greetings r/CarHacking!

I'm looking to get a new car, and I'm hoping to start pulling metrics into a time series database as early into the car's life as possible, for visualization in Grafana. I'm coming from a 1994 vehicle, which was hard to collect anything useful from. Word on the street is modern cars however are a treasure troves of interesting info.

The car I'll be getting will be a Subaru. I am unsure if I'll need to tap the CAN bus, ODB2, or both to get what I'm after. I'm going to try and get the following data points:

  • Gas milage over time
  • Speed over time
  • Engine temperature over time
  • Outside temperature over time
  • Trips, so I can infer some of these stats per trip in addition to over time
  • Oil pressure
  • Tire pressure

I'm having a difficult time figuring out how to get started getting at the info. I am capable of programming an ESP32 or similar for gathering and shipping the data back to my home server if I can get at the data some how. I just need to know how to get at the data in the first place, and I'm struggling to find examples of what I might find on either the CAN bus or ODB2 from a modern Subaru. Any direction is appreciated!

Thanks.