HA, Prometheus, Grafana, VictoriaMetrics Ubuntu snap

Hi team,
I’ve started down the rabbit hole. I’ve got HA docker installed on Ubuntu, and now realising I’ll need a database. I’ve used snap to install Prometheus, Victoriametrics and Grafana on Ubuntu, I now need them all to speak with each other and Home Assistant. I’m a little stuck on how to do this, any help is appreciated.