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
2 changed files with 3 additions and 0 deletions
Showing only changes of commit 346b9a1bc2 - Show all commits

View File

@ -11,6 +11,8 @@ import java.util.List;
@Component @Component
@Endpoint(id="metric-links") @Endpoint(id="metric-links")
// BLOG: implement a custom Spring Actuator endpoint to view _clickable_ Spring Actuator (Micrometer) Metrics endpoints
// HOWTO: implement a custom Spring Actuator endpoint
public class CustomActuatorEndpoint { public class CustomActuatorEndpoint {
private final RestTemplate restTemplate = new RestTemplate(); private final RestTemplate restTemplate = new RestTemplate();

View File

@ -8,6 +8,7 @@ management:
endpoints: endpoints:
web: web:
exposure: exposure:
# HOWTO: view _clickable_ Spring Actuator (Micrometer) Metrics endpoints: http://localhost:8081/actuator/metric-links
include: info, health, metrics, metric-links include: info, health, metrics, metric-links
observations: observations:
annotations: annotations: