You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/07/29 20:17:57 UTC

(camel) 15/15: CAMEL-22285: platform-http-main - Dev consoles should be registered as management endpoints

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 <cl...@gmail.com>
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