Uploaded image for project: 'Red Hat Build of Apache Camel for Quarkus'
  1. Red Hat Build of Apache Camel for Quarkus
  2. CEQ-1190

OCP 4.6/4.8 doesn't show metrics for pod from Application Services Metering Operator

XMLWordPrintable

    • False
    • False
    • 0

      1. Use OCP 4.6/4.8
      2. # Installed Application Services Metering Operator - see image operator_running.png
      3. Clone quickstart - https://github.com/jboss-fuse/camel-quarkus-examples/tree/camel-quarkus-examples-2.2.0-product/file-bindy-ftp and apply following diff
        ~/R/q/c/file-bindy-ftp ❯❯❯ git diff                                                                                                                                            camel-quarkus-examples-2.2.0-product ✭ ✱
        diff --git a/file-bindy-ftp/src/main/resources/application.properties b/file-bindy-ftp/src/main/resources/application.properties
        index 2516fbc7935..9648f7f7a7a 100644
        --- a/file-bindy-ftp/src/main/resources/application.properties
        +++ b/file-bindy-ftp/src/main/resources/application.properties
        @@ -50,3 +50,11 @@ quarkus.openshift.build-strategy=docker
         #quarkus.openshift.resources.requests.cpu=250m
         #quarkus.openshift.resources.limits.memory=512Mi
         #quarkus.openshift.resources.limits.cpu=1000m
        +
        +
        +quarkus.openshift.labels."com.company"=Red_Hat
        +quarkus.openshift.labels."rht.comp"=Camel-Quarkus
        +quarkus.openshift.labels."rht.comp_ver"=2.2.0
        +quarkus.openshift.labels."rht.prod_name"=Red_Hat_Integration
        +quarkus.openshift.labels."rht.prod_ver"=2021-Q4
        +quarkus.openshift.labels."rht.subcomp_t"=application
        
        
      4. Deploy the quickstart with
        mvn clean package -DskipTests -Dquarkus.kubernetes.deploy=true -Dquarkus.kubernetes-client.trust-certs=true 
        
      5. Check the pod is running - see labels_in_pod.jpg
      6. Wait few mintues (i was waiting more then 10mins) and check the Montoring -> Metrics and try to gather metrics - see no_endpoints.png

        1. labels_in_pod.png
          labels_in_pod.png
          249 kB
        2. no_datapoints.png
          no_datapoints.png
          32 kB
        3. operator_running.png
          operator_running.png
          86 kB
        1.
        Documentation Sub-task Closed Undefined Unassigned
        2.
        Productization Sub-task Closed Undefined Unassigned
        3.
        Review Test Sub-task Closed Undefined Unassigned
        4.
        Development Sub-task Closed Undefined Unassigned

            jnethert@redhat.com James Netherton
            llowinge@redhat.com Lukas Lowinger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: