You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/12/03 17:41:38 UTC

[GitHub] [camel-k] astefanutti commented on issue #2812: Be able to configure PodMonitor via prometheus trait

astefanutti commented on issue #2812:
URL: https://github.com/apache/camel-k/issues/2812#issuecomment-985707685


   I wonder in that case whether creating a single bespoke `PodMonitor` matching all the integrations, would meet your need, e.g.: 
   
   ```yaml
   apiVersion: monitoring.coreos.com/v1
   kind: PodMonitor
   metadata:
     name: camel-k-integrations
     labels:
       # To match the Prometheus PodMonitor selector
   spec:
     podTargetLabels:
       - camel.apache.org/integration
     selector:
       matchExpressions:
         - key: camel.apache.org/integration
           operator: Exists
     podMetricsEndpoints:
       - port: metrics
         path: /q/metrics
         interval: 15s
   ```
   
   And you could configuration the _prometheus_ trait globally on the IntegrationPlatform, e.g.:
   
   ```yaml
   apiVersion: camel.apache.org/v1
   kind: IntegrationPlatform
   spec:
     traits:
       - prometheus:
         configuration:
           enabled: true
           podMonitor: false
   ```
   


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org