This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch man in repository https://gitbox.apache.org/repos/asf/camel.git
commit de32a10bb4aea232cf02425926cef826bcad43be Author: Claus Ibsen <[email protected]> AuthorDate: Tue Jul 29 20:35:09 2025 +0200 CAMEL-22285: platform-http-main - Dev consoles should be registered as management endpoints --- .../apache/camel/dsl/jbang/core/commands/process/ListMetric.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java index b1d0fed4f08..66c891eeca4 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java @@ -150,10 +150,14 @@ public class ListMetric extends ProcessWatchCommand { JsonObject jo = (JsonObject) arr.get(i); row.type = "gauge"; row.metricName = jo.getString("name"); + if ("app.info".equals(row.metricName)) { + continue; // special camel info that hides in the metrics + } row.metricDescription = jo.getString("description"); row.metricId = extractId(jo); row.tags = extractTags(jo); - row.count = jo.getDouble("value"); + row.count = 0; + row.count = jo.getDoubleOrDefault("value", 0); if (custom && row.metricName.startsWith("Camel")) { continue; // skip internal camel metrics
