linked metrics-endpoint #132

Merged
hsh-michaelhoennig merged 5 commits from feature/linked-metrics-endpoint into master 2024-12-06 10:08:32 +01:00
4 changed files with 4 additions and 4 deletions
Showing only changes of commit 31b4882065 - Show all commits

View File

@ -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();

View File

@ -8,7 +8,7 @@ management:
endpoints:
web:
exposure:
include: info, health, metrics, custom
include: info, health, metrics, metric-links
observations:
annotations:
enabled: true

View File

@ -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")

View File

@ -6,7 +6,7 @@ management:
endpoints:
web:
exposure:
include: info, health, metrics, custom
include: info, health, metrics, metric-links
spring:
sql: