@@ -0,0 +1,1018 @@
+import java.util.Map;%0A%0Aimport org.springframework.cloud.client.discovery.DiscoveryClient;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0Aimport org.springframework.web.client.RestTemplate;%0A%0Aimport com.google.common.collect.Maps;%0A%0Aimport lombok.RequiredArgsConstructor;%0Aimport lombok.extern.slf4j.Slf4j;%0A%0A@RestController%0A@RequiredArgsConstructor%0A@Slf4j%0Apublic class MetricsController %7B%0A%0A    private final DiscoveryClient eurekaClient;%0A%0A    private final RestTemplate restTemplate;%0A%0A    @GetMapping(%22/metricTest%22)%0A    public Map%3CString, Object%3E getMetrics() %7B%0A%0A        eurekaClient.getServices().forEach(service -%3E %7B%0A            String url = %22http://%22 + service + %22/metrics%22;%0A            log.error(%22 @@@@@@  %7B%7D , - %3E %7B%7D                 %22, service, url);%0A%0A            Map%3CString, Object%3E metrics = restTemplate.getForObject(url, Map.class);%0A            log.error(%22metrics : %7B%7D %22, metrics);%0A        %7D);%0A        return Maps.newHashMap();%0A%0A    %7D%0A%0A%7D%0A

Create MetricsController.java