diff --git a/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java b/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java index 4c0a4f5b..802838a6 100644 --- a/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java +++ b/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java @@ -10,7 +10,7 @@ import org.springframework.web.servlet.support.ServletUriComponentsBuilder; import java.util.List; @Component -@Endpoint(id="custom") +@Endpoint(id="metric-links") public class CustomActuatorEndpoint { private final RestTemplate restTemplate = new RestTemplate(); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index d747b9e2..abd50d19 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,7 +8,7 @@ management: endpoints: web: exposure: - include: info, health, metrics, custom + include: info, health, metrics, metric-links observations: annotations: enabled: true diff --git a/src/test/java/net/hostsharing/hsadminng/config/CustomActuatorEndpointAcceptanceTest.java b/src/test/java/net/hostsharing/hsadminng/config/CustomActuatorEndpointAcceptanceTest.java index 8dabfa6c..9f3ae676 100644 --- a/src/test/java/net/hostsharing/hsadminng/config/CustomActuatorEndpointAcceptanceTest.java +++ b/src/test/java/net/hostsharing/hsadminng/config/CustomActuatorEndpointAcceptanceTest.java @@ -27,7 +27,7 @@ class CustomActuatorEndpointAcceptanceTest { .given() .port(managementPort) .when() - .get("http://localhost/actuator/custom") + .get("http://localhost/actuator/metric-links") .then().log().all().assertThat() .statusCode(200) .contentType("application/vnd.spring-boot.actuator.v3+json") diff --git a/src/test/resources/application.yml b/src/test/resources/application.yml index 871997c4..f0df4e4b 100644 --- a/src/test/resources/application.yml +++ b/src/test/resources/application.yml @@ -6,7 +6,7 @@ management: endpoints: web: exposure: - include: info, health, metrics, custom + include: info, health, metrics, metric-links spring: sql: