benczekristof opened a new issue, #3415:
URL: https://github.com/apache/camel-k/issues/3415

   Dear Maintainers,
   
   I wanted to create a podMonitor resource with the right labels (so 
Prometheus will discover the integrations for metrics), in the following way: I 
have created an Integration Platform in the name space like this:
   
   ```
   apiVersion: camel.apache.org/v1
   kind: IntegrationPlatform
   metadata:
     name: camel-k
     namespace: kristof-test
   spec:
     traits:
       prometheus:
         configuration:
           enabled: true (1)
           pod-monitor-labels: 
           - release=kube-prometheus-stack
   ```
   Then run the following command to create a kamel integration and 
automatically its podMonitor with the right label:
   `kamel run helloworld.groovy -n kristof-test
   `
   The PodMonitor resource with missing label:
   
   ```
   Name:         helloworld
   Namespace:    kristof-test
   Labels:       camel.apache.org/generation=1
                 camel.apache.org/integration=helloworld
   Annotations:  <none>
   API Version:  monitoring.coreos.com/v1
   Kind:         PodMonitor
   Spec:
     Pod Metrics Endpoints:
       Path:  /q/metrics
       Port:  http
     Selector:
       Match Labels:
         camel.apache.org/integration:  helloworld
   ```
   All of those things were created, except the PodMonitor resource, which 
lacked the desired label, could you please let me know why the automatic label 
creation doesn't function for me and how can i resolve it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to