This thread is where I've seen most of the info I've read, though I'm sure there's more I haven't: Share Your Data Logging and Visualization Implementations. You would need a separate server (than the hub, I mean) for InfluxDB (or whatever you choose to handle that part), which I guess I wasn't sure whether you already had or just Grafana. I wish I could speak more to how this works for me, but I gave up on this idea early on and just kept using Home Assistant for this purpose, which I used for a bit before Hubitat and never quite gave up on because I liked its built-in history graphs.
(And that's all it does for me anymore. Yes, I'm using a full-blown home automation platform for only this side benefit.)