Yes, there is a possibility. We are customizing the maven repository
to our own...

How can I increase the Camel-k operator log level?

On Mon, Nov 29, 2021 at 6:15 AM Antonin Stefanutti
<[email protected]> wrote:
>
> For some reasons, the process that performs the Maven build is killed:
>
> {"level":"info","ts":1637952361.010027,"logger":"camel-k.builder","msg":"step
> failed with error: failure while building project: signal:
> killed","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}
> ...
> {"level":"error","ts":1637952361.022746,"logger":"camel-k.controller.build","msg":"Build
> kit-c6gi8msurk73bvs3vdu0 failed: failure while building project:
> signal: 
> killed","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
>
> Maybe the output `kubectl describe pod -l name=camel-k-operator` could give 
> some information.
>
> Also the output of `kubectl get ip camel-k -o yaml` may help.
>
> > On 26 Nov 2021, at 19:51, Roberto Camelk <[email protected]> 
> > wrote:
> >
> > My operator is running with INFO level:
> >
> > {"level":"info","ts":1637952061.044711,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0449612,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0451665,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0453973,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > error-recovery","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0460696,"logger":"camel-k.controller.build","msg":"Recovery
> > attempt 
> > (5/5)","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0460083,"logger":"camel-k.controller.build","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Running","phase-to":"Failed"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0824542,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0825412,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0846877,"logger":"camel-k.controller.build","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Failed","phase-to":"Initialization"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0848954,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.0849895,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > initialize","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.1089196,"logger":"camel-k.controller.build","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Initialization","phase-to":"Scheduling"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.113609,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.1137555,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > schedule","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.1144483,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.1146111,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.1963077,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.1967154,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.197202,"logger":"camel-k.controller.build","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Scheduling","phase-to":"Pending"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.1982586,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.198348,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > monitor-routine","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2419984,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2421591,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2472703,"logger":"camel-k.controller.integrationkit","msg":"Build
> > running","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.261408,"logger":"camel-k.controller.build","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Pending","phase-to":"Running"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.261683,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2618976,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > monitor-routine","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.26221,"logger":"camel-k.builder","msg":"steps:
> > [github.com/apache/camel-k/pkg/builder/LoadCamelQuarkusCatalog@0
> > github.com/apache/camel-k/pkg/builder/CleanUpBuildDir@9
> > github.com/apache/camel-k/pkg/builder/GenerateJavaKeystore@10
> > github.com/apache/camel-k/pkg/builder/GenerateQuarkusProject@10
> > github.com/apache/camel-k/pkg/builder/GenerateProjectSettings@11
> > github.com/apache/camel-k/pkg/builder/InjectDependencies@12
> > github.com/apache/camel-k/pkg/builder/SanitizeDependencies@13
> > github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner@20
> > github.com/apache/camel-k/pkg/builder/ComputeQuarkusDependencies@21
> > github.com/apache/camel-k/pkg/builder/IncrementalImageContext@30]"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2622988,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/LoadCamelQuarkusCatalog","phase":"0","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.270358,"logger":"camel-k.builder","msg":"step
> > done in 0.008005
> > seconds","step":"github.com/apache/camel-k/pkg/builder/LoadCamelQuarkusCatalog","phase":"0","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2704937,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/CleanUpBuildDir","phase":"9","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.272306,"logger":"camel-k.builder","msg":"step
> > done in 0.001771
> > seconds","step":"github.com/apache/camel-k/pkg/builder/CleanUpBuildDir","phase":"9","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.272396,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/GenerateJavaKeystore","phase":"10","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2724276,"logger":"camel-k.builder","msg":"step
> > done in 0.000001
> > seconds","step":"github.com/apache/camel-k/pkg/builder/GenerateJavaKeystore","phase":"10","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2724893,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/GenerateQuarkusProject","phase":"10","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2754686,"logger":"camel-k.builder","msg":"step
> > done in 0.000010
> > seconds","step":"github.com/apache/camel-k/pkg/builder/GenerateQuarkusProject","phase":"10","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2756126,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/GenerateProjectSettings","phase":"11","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2757154,"logger":"camel-k.builder","msg":"step
> > done in 0.000067
> > seconds","step":"github.com/apache/camel-k/pkg/builder/GenerateProjectSettings","phase":"11","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2759113,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/InjectDependencies","phase":"12","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2762337,"logger":"camel-k.builder","msg":"step
> > done in 0.000225
> > seconds","step":"github.com/apache/camel-k/pkg/builder/InjectDependencies","phase":"12","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2763238,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/SanitizeDependencies","phase":"13","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2764044,"logger":"camel-k.builder","msg":"step
> > done in 0.000001
> > seconds","step":"github.com/apache/camel-k/pkg/builder/SanitizeDependencies","phase":"13","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.2765944,"logger":"camel-k.builder","msg":"executing
> > step","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}
> > 26/11/2021 15:41:01
> > {"level":"info","ts":1637952061.279381,"logger":"camel-k.maven","msg":"executing:
> > mvn --no-transfer-progress -Dstyle.color=never
> > -Dmaven.repo.local=/tmp/artifacts/m2 --settings
> > /tmp/kit-c6gi8msurk73bvs3vdu0-971937701/maven/settings.xml
> > package","MAVEN_OPTS":""}
> > 26/11/2021 15:41:06
> > {"level":"info","ts":1637952066.1454635,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:06
> > {"level":"info","ts":1637952066.1473348,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > monitor-routine","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:41:29
> > {"level":"info","ts":1637952089.1514184,"logger":"camel-k.maven.build","msg":"Scanning
> > for projects..."}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.010027,"logger":"camel-k.builder","msg":"step
> > failed with error: failure while building project: signal:
> > killed","step":"github.com/apache/camel-k/pkg/builder/BuildQuarkusRunner","phase":"20","task":"builder"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.010186,"logger":"camel-k.builder","msg":"dependencies:
> > [camel:cron camel:micrometer camel:microprofile-metrics camel:quartz
> > mvn:org.apache.camel.k:camel-k-cron
> > mvn:org.apache.camel.k:camel-k-runtime
> > mvn:org.apache.camel.quarkus:camel-quarkus-java-joor-dsl]"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0176032,"logger":"camel-k.builder","msg":"artifacts:
> > []"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.017837,"logger":"camel-k.builder","msg":"artifacts
> > selected: []"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0180254,"logger":"camel-k.builder","msg":"base
> > image: adoptopenjdk/openjdk11:slim"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0181415,"logger":"camel-k.builder","msg":"resolved
> > base image: adoptopenjdk/openjdk11:slim"}
> > 26/11/2021 15:46:01
> > {"level":"error","ts":1637952361.022746,"logger":"camel-k.controller.build","msg":"Build
> > kit-c6gi8msurk73bvs3vdu0 failed: failure while building project:
> > signal: 
> > killed","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0331633,"logger":"camel-k.controller.build","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Running","phase-to":"Failed"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0399475,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0401633,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0408087,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0409994,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > error-recovery","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0619507,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0626395,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.066489,"logger":"camel-k.controller.build","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Failed","phase-to":"Error"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0667377,"logger":"camel-k.controller.build","msg":"Reconciling
> > Build","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0668366,"logger":"camel-k.controller.build","msg":"Invoking
> > action 
> > error","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"Build","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0814283,"logger":"camel-k.controller.integrationkit","msg":"state
> > transition","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0","phase-from":"Build
> > Running","phase-to":"Error"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0815723,"logger":"camel-k.controller.integrationkit","msg":"Reconciling
> > IntegrationKit","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:46:01
> > {"level":"info","ts":1637952361.0817475,"logger":"camel-k.controller.integrationkit","msg":"Invoking
> > action 
> > error","request-namespace":"platform","request-name":"kit-c6gi8msurk73bvs3vdu0","api-version":"camel.apache.org/v1","kind":"IntegrationKit","ns":"platform","name":"kit-c6gi8msurk73bvs3vdu0"}
> > 26/11/2021 15:49:10
> > {"level":"info","ts":1637952550.8928444,"logger":"camel-k.controller.integration","msg":"Reconciling
> > Integration","request-namespace":"platform","request-name":"micrometer"}
> >
> > On Fri, Nov 26, 2021 at 3:33 PM Antonin Stefanutti
> > <[email protected]> wrote:
> >>
> >> It seems you are mixing MicroProfile Metrics and Micrometer.
> >>
> >> For using MicroProfile Metrics, you can find an example at:
> >>
> >> https://github.com/astefanutti/camel-k-example-metrics/blob/master/Metrics.java#L44
> >>
> >> Note that the extra //camel-k: dependency are probably not required, so 
> >> I'd suggest you remove them.
> >>
> >> Last but not least, in order to understand why the build fails, could you 
> >> please provide the operator Pod logs?
> >>
> >>> On 26 Nov 2021, at 19:27, Roberto Camelk <[email protected]> 
> >>> wrote:
> >>>
> >>> Hi, I'm trying to create a sample um route using microprofile metrics.
> >>>
> >>> So I created this java source file containing:
> >>>
> >>> //camel-k: dependency=camel-cron
> >>> //camel-k: dependency=camel-quarkus-microprofile-metrics
> >>>
> >>> public class LoggedInRoute extends RouteBuilder {
> >>>
> >>>   @Override
> >>>   public void configure() throws Exception {
> >>>       var seconds =
> >>> java.util.concurrent.ThreadLocalRandom.current().nextInt(1, 10);
> >>>       from("cron:tab?schedule=0/5+*+*+*+*+?")
> >>>               .to("micrometer:timer:simpleTimerMock?action=start")
> >>>               .delay(seconds * 1000)
> >>>               .setBody(simple("{\"msg\":\"Seconds: " + seconds + "\"}"))
> >>>               .log("${body}")
> >>>               .to("micrometer:timer:simpleTimerMock?action=stop");
> >>>   }
> >>>
> >>> }
> >>>
> >>> To run it, I used this command:
> >>>
> >>> kamel run test/Micrometer.java --dev
> >>>
> >>> But camel-k CLI fails with this log:
> >>>
> >>> Modeline options have been loaded from source files
> >>> Full command: kamel run test/Micrometer.java --dev
> >>> --dependency=camel-cron
> >>> --dependency=camel-quarkus-microprofile-metrics
> >>> Integration "micrometer" created
> >>> Progress: integration "micrometer" in phase Initialization
> >>> Condition "IntegrationPlatformAvailable" is "True" for Integration
> >>> micrometer: platform/camel-k
> >>> Integration "micrometer" in phase "Initialization"
> >>> Progress: integration "micrometer" in phase Building Kit
> >>> Integration "micrometer" in phase "Building Kit"
> >>> Condition "IntegrationKitAvailable" is "False" for Integration
> >>> micrometer: creating a new integration kit
> >>> Integration Kit "kit-c6gi8msurk73bvs3vdu0", created by Integration
> >>> "micrometer", changed phase to "Build Submitted"
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Scheduling"
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Pending"
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Running"
> >>> Integration Kit "kit-c6gi8msurk73bvs3vdu0", created by Integration
> >>> "micrometer", changed phase to "Build Running"
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Failed"
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Initialization" (recovery 1 of 5)
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Scheduling" (recovery 1 of 5)
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Pending" (recovery 1 of 5)
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Running" (recovery 1 of 5)
> >>> Build "kit-c6gi8msurk73bvs3vdu0", created by Integration "micrometer",
> >>> changed phase to "Failed" (recovery 1 of 5)
> >>> (combined from similar events): Build "kit-c6gi8msurk73bvs3vdu0",
> >>> created by Integration "micrometer", changed phase to "Initialization"
> >>> (recovery 2 of 5)
> >>> (combined from similar events): Build "kit-c6gi8msurk73bvs3vdu0",
> >>> created by Integration "micrometer", changed phase to "Scheduling"
> >>> (recovery 2 of 5)
> >>> (combined from similar events): Build "kit-c6gi8msurk73bvs3vdu0",
> >>> created by Integration "micrometer", changed phase to "Pending"
> >>> (recovery 2 of 5)
> >>> (combined from similar events): Build "kit-c6gi8msurk73bvs3vdu0",
> >>> created by Integration "micrometer", changed phase to "Running"
> >>> (recovery 2 of 5)
> >>> ...
> >>
>

Reply via email to