github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/kafka/templates/configmap.yaml (about) 1 apiVersion: v1 2 kind: ConfigMap 3 metadata: 4 name: {{ include "kafka.name" . }}-configuration-tpl 5 namespace: {{ .Release.Namespace | quote }} 6 labels: {{- include "common.labels.standard" . | nindent 4 }} 7 {{- if .Values.commonLabels }} 8 {{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }} 9 {{- end }} 10 {{- if .Values.commonAnnotations }} 11 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }} 12 {{- end }} 13 data: 14 server.properties: |- 15 {{- .Files.Get "configs/kafka-server.prop.tpl" | nindent 4 }} 16 17 --- 18 apiVersion: v1 19 kind: ConfigMap 20 metadata: 21 name: {{ include "kafka.name" . }}-jmx-configuration-tpl 22 data: 23 jmx-kafka-prometheus.yml: |- 24 jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:5555/jmxrmi 25 lowercaseOutputName: true 26 lowercaseOutputLabelNames: true 27 ssl: false 28 whitelistObjectNames: ["kafka.controller:*","kafka.server:*","java.lang:*","kafka.network:*","kafka.log:*"] 29 rules: 30 - pattern: kafka.controller<type=(ControllerChannelManager), name=(QueueSize), broker-id=(\d+)><>(Value) 31 name: kafka_controller_$1_$2_$4 32 labels: 33 broker_id: "$3" 34 - pattern: kafka.controller<type=(ControllerChannelManager), name=(TotalQueueSize)><>(Value) 35 name: kafka_controller_$1_$2_$3 36 - pattern: kafka.controller<type=(KafkaController), name=(.+)><>(Value) 37 name: kafka_controller_$1_$2_$3 38 - pattern: kafka.controller<type=(ControllerStats), name=(.+)><>(Count) 39 name: kafka_controller_$1_$2_$3 40 - pattern: kafka.server<type=(ReplicaFetcherManager), name=(.+), clientId=(.+)><>(Value) 41 name: kafka_server_$1_$2_$4 42 labels: 43 client_id: "$3" 44 - pattern : kafka.network<type=(Processor), name=(IdlePercent), networkProcessor=(.+)><>(Value) 45 name: kafka_network_$1_$2_$4 46 labels: 47 network_processor: $3 48 - pattern : kafka.network<type=(RequestMetrics), name=(RequestsPerSec), request=(.+)><>(Count) 49 name: kafka_network_$1_$2_$4 50 labels: 51 request: $3 52 - pattern: kafka.server<type=(.+), name=(.+), topic=(.+)><>(Count|OneMinuteRate) 53 name: kafka_server_$1_$2_$4 54 labels: 55 topic: $3 56 - pattern: kafka.server<type=(DelayedOperationPurgatory), name=(.+), delayedOperation=(.+)><>(Value) 57 name: kafka_server_$1_$2_$3_$4 58 - pattern: kafka.server<type=(.+), name=(.+)><>(Count|Value|OneMinuteRate) 59 name: kafka_server_$1_total_$2_$3 60 - pattern: kafka.server<type=(.+)><>(queue-size) 61 name: kafka_server_$1_$2 62 - pattern: java.lang<type=(.+), name=(.+)><(.+)>(\w+) 63 name: java_lang_$1_$4_$3_$2 64 - pattern: java.lang<type=(.+), name=(.+)><>(\w+) 65 name: java_lang_$1_$3_$2 66 - pattern : java.lang<type=(.*)> 67 - pattern: kafka.log<type=(.+), name=(.+), topic=(.+), partition=(.+)><>Value 68 name: kafka_log_$1_$2 69 labels: 70 topic: $3 71 partition: $4 72 - pattern: kafka.server<type=socket-server-metrics, listener=(.+), networkProcessor=(.+)><>(connection-count) 73 name: kafka_server_socket_server_metrics_$3 74 labels: 75 listener: $1