To connect to Prometheus, first connect your Grafana instance by following the instructions here. Once grafana is connected, you can then connect your prometheus data source by providing the following details
Endpoint - This is where your prometheus is hosted.