Frenk’s video will run you through it (and I do mean run, not walk - use the pause button when required):
The only addition I would make is to use the include/exclude feature in the Home Assistant InfluxDB configuration so that you are not including everything (unless you want to). I only include the sensors I want to graph long term data for.