Re: Adding annotations and limits of kafka connect created pods


amit.cahanovich@...
 

for reference,
The following is kafkaconnect that is integrated with datadog (named my-connect-cluster)

apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnect
metadata:
  name: my-connect-cluster
  namespace: kafka
  annotations:
    strimzi.io/use-connector-resources: "true"
spec:
  image: amitca71/strimzi-connect:0.27.1-kafka-2.8.1
  version: 2.8.1
  replicas: 3
  bootstrapServers: "${bootstrat_servers}"
  template:
    deployment:
      metadata:
        annotations:
          reloader.stakater.com/auto: "true"
    pod:
      metadata:
        annotations:
          ad.datadoghq.com/my-connect-cluster-connect.check_names: '["openmetrics"]'
          ad.datadoghq.com/my-connect-cluster-connect.init_configs: '[{}]'
          ad.datadoghq.com/my-connect-cluster-connect.instances: '[{"prometheus_url": "http://%%host%%:%%port%%/metrics","namespace": "strimzi_kafka_connect","metrics": ["kafka_connect_connector_task_batch_size_avg", "kafka_admin_client_node_incoming_byte_total", "kafka_connect_worker_connector_paused_task_count","kafka_connect_version_info"]}]'    
  

Join cncf-strimzi-users@lists.cncf.io to automatically receive all group messages.