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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]