[
https://issues.apache.org/jira/browse/CAMEL-22695?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18039479#comment-18039479
]
Cameron Fitzwater edited comment on CAMEL-22695 at 11/19/25 10:14 PM:
----------------------------------------------------------------------
Would you expect it work if putting
[https://github.com/apache/camel/blob/main/components/camel-observability-services/src/main/resources/observability-services.properties]
in application properties? I tried this and exported with --runtime=quarkus
--observe, using v4.14.0 (quarkus 3.27.0), and it actually throws an error –
also failed with 3.29.0 which I believe is latest quarkus version:
{code:java}
2025-11-19 22:05:32,273 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main)
Failed to start application: java.lang.IllegalArgumentException: Existing
MeterRegistry: io.micrometer.core.instrument.composite.CompositeMeterRegistry
is not a PrometheusMeterRegistry type.
at
org.apache.camel.component.micrometer.prometheus.MicrometerPrometheus.doInit(MicrometerPrometheus.java:298){code}
_I mainly just want to ensure this is going to work come the new quarkus
release, and ideally understand if there is a workaround in the meantime (I
need to use camel >= 4.14 due some other feats/bugs that were fixed), otherwise
I would have backed down to previous LTS where --observe was still working)._
was (Author: JIRAUSER310023):
Would you expect it work if putting
[https://github.com/apache/camel/blob/main/components/camel-observability-services/src/main/resources/observability-services.properties]
in application properties? I tried this and exported with --runtime=quarkus
--observe, using v4.14.0 (quarkus 3.27.0), and it actually throws an error –
also failed with 3.29.0 which I believe is latest quarkus version:
{code:java}
2025-11-19 22:05:32,273 ERROR [org.apa.cam.qua.mai.CamelMainRuntime] (main)
Failed to start application: java.lang.IllegalArgumentException: Existing
MeterRegistry: io.micrometer.core.instrument.composite.CompositeMeterRegistry
is not a PrometheusMeterRegistry type.
at
org.apache.camel.component.micrometer.prometheus.MicrometerPrometheus.doInit(MicrometerPrometheus.java:298){code}
_I mainly just want to ensure this is going to work come the new quarkus
release, and ideally understand if there is a workaround in the meantime._
> camel-jbang: --observe flag being ignored
> -----------------------------------------
>
> Key: CAMEL-22695
> URL: https://issues.apache.org/jira/browse/CAMEL-22695
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.x
> Reporter: Cameron Fitzwater
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.14.3, 4.17.0
>
>
> When running a {{camel run}} or {{{}camel export{}}}, if you have an
> application.properties file, it is no longer auto-enabling metrics when
> having the {{--observe}} flag (it is completely ignored).
> We use this {{--observe}} flag in our pipeline, and even with jbang and camel
> pinned to version, the same behavior is happening.
> This behavior changed recently, and I believe impacted all 4.X, per some
> local testing.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)