You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "squakez (via GitHub)" <gi...@apache.org> on 2026/08/11 10:07:19 UTC

[PR] feat(starters): micrometer support logMetricsOnShutdownFormat [camel-spring-boot]

squakez opened a new pull request, #1884:
URL: https://github.com/apache/camel-spring-boot/pull/1884

   Depends on https://github.com/apache/camel/pull/25444
   
   Ref CAMEL-24356


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(starters): micrometer support logMetricsOnShutdownFormat [camel-spring-boot]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #1884:
URL: https://github.com/apache/camel-spring-boot/pull/1884#discussion_r3766074182


##########
components-starter/camel-observability-services-starter/src/main/java/org/apache/camel/observability/services/springboot/ObservabilityServicesEnvironmentPostProcessor.java:
##########
@@ -43,7 +43,8 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
         defaults.put("management.endpoints.web.path-mapping.prometheus", "metrics");
         // Metrics
         defaults.put("camel.metrics.log-metrics-on-shutdown", "true");
-        defaults.put("camel.metrics.log-metrics-on-shutdown-filters", "app.info,camel.exchanges.*");
+        defaults.put("camel.metrics.log-metrics-on-shutdown-filters", "app.info,camel.exchanges.*,process.cpu.usage,jvm.memory.max,jvm.memory.used");
+        defaults.put("camel.metrics.log-metrics-on-shutdown-format", "prometheus");

Review Comment:
   here prometheus is default but further up its json



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(starters): micrometer support logMetricsOnShutdownFormat [camel-spring-boot]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez merged PR #1884:
URL: https://github.com/apache/camel-spring-boot/pull/1884


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(starters): micrometer support logMetricsOnShutdownFormat [camel-spring-boot]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus commented on code in PR #1884:
URL: https://github.com/apache/camel-spring-boot/pull/1884#discussion_r3766350876


##########
components-starter/camel-observability-services-starter/src/main/java/org/apache/camel/observability/services/springboot/ObservabilityServicesEnvironmentPostProcessor.java:
##########
@@ -43,7 +43,8 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
         defaults.put("management.endpoints.web.path-mapping.prometheus", "metrics");
         // Metrics
         defaults.put("camel.metrics.log-metrics-on-shutdown", "true");
-        defaults.put("camel.metrics.log-metrics-on-shutdown-filters", "app.info,camel.exchanges.*");
+        defaults.put("camel.metrics.log-metrics-on-shutdown-filters", "app.info,camel.exchanges.*,process.cpu.usage,jvm.memory.max,jvm.memory.used");
+        defaults.put("camel.metrics.log-metrics-on-shutdown-format", "prometheus");

Review Comment:
   ok



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] feat(starters): micrometer support logMetricsOnShutdownFormat [camel-spring-boot]

Posted by "squakez (via GitHub)" <gi...@apache.org>.
squakez commented on code in PR #1884:
URL: https://github.com/apache/camel-spring-boot/pull/1884#discussion_r3766321917


##########
components-starter/camel-observability-services-starter/src/main/java/org/apache/camel/observability/services/springboot/ObservabilityServicesEnvironmentPostProcessor.java:
##########
@@ -43,7 +43,8 @@ public void postProcessEnvironment(ConfigurableEnvironment environment, SpringAp
         defaults.put("management.endpoints.web.path-mapping.prometheus", "metrics");
         // Metrics
         defaults.put("camel.metrics.log-metrics-on-shutdown", "true");
-        defaults.put("camel.metrics.log-metrics-on-shutdown-filters", "app.info,camel.exchanges.*");
+        defaults.put("camel.metrics.log-metrics-on-shutdown-filters", "app.info,camel.exchanges.*,process.cpu.usage,jvm.memory.max,jvm.memory.used");
+        defaults.put("camel.metrics.log-metrics-on-shutdown-format", "prometheus");

Review Comment:
   yes, that's how it is supposed to work for the observability services. The dashboard (or any other Prometheus native tool) is scraping that format by default.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org