Those are all different types of network error. You need to ensure that
Prometheus can connect to the IP address & port listed/discovered from
the scrape configuration.
If that doesn't work it could be due to incorrect IP/port details being
included in the configuration, firewalls not allowing access, missing
routing information or applications not running & exposing a web server
on the correct port.
--
Stuart Clark