Howto spesify cutom url for prometheus

If you look at the below documentation, there you have to provide the hostname and IP and the Prometheus web port which itself forms a URL from the special agent queries.
https://checkmk.com/cms_monitoring_prometheus.html

Why do you need to specify custom URL ?