add path as metrics

This commit is contained in:
Francesco Mangiacrapa 2024-10-15 16:18:31 +02:00
parent 06932cdd68
commit 427ceed7a0
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,8 @@ package org.gcube.datatransfer.resolver.services;
import java.util.Collection;
import javax.ws.rs.Path;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.autoconfigure.EndpointAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.PublicMetricsAutoConfiguration;
@ -15,6 +17,7 @@ import org.springframework.context.annotation.Import;
@Configuration
@Import({ EndpointAutoConfiguration.class, PublicMetricsAutoConfiguration.class })
@Path("metrics")
public class SpringBootActuatorConfig {
@Bean