private static Collection<URI> getHostsOfApplication(Application application) {
        return application.getModel().getHosts().stream()
                .filter(host -> host.getServices().stream().noneMatch(isLogserver()))
                .map(HostInfo::getHostname)
                .map(DeploymentMetricsRetriever::createMetricsProxyURI)
                .toList();

    }
Finds all hosts we want to fetch metrics for, generates the appropriate URIs
and returns the generated MetricsResponse.

@author olaa
configserver/src/main/java/com/yahoo/vespa/config/server/metrics/DeploymentMetricsRetriever.java