From 346b9a1bc2e7466f3d13f35265e9117374ba2100 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Fri, 6 Dec 2024 09:07:44 +0100 Subject: [PATCH] add HOWTO+BLOG comments --- .../hostsharing/hsadminng/config/CustomActuatorEndpoint.java | 2 ++ src/main/resources/application.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java b/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java index 802838a6..942ddbb9 100644 --- a/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java +++ b/src/main/java/net/hostsharing/hsadminng/config/CustomActuatorEndpoint.java @@ -11,6 +11,8 @@ import java.util.List; @Component @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 { private final RestTemplate restTemplate = new RestTemplate(); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index abd50d19..f75ae429 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,6 +8,7 @@ management: endpoints: web: exposure: + # HOWTO: view _clickable_ Spring Actuator (Micrometer) Metrics endpoints: http://localhost:8081/actuator/metric-links include: info, health, metrics, metric-links observations: annotations: